changeset 1374:8144c02c12f6

Merged with Marcel.
author Janus Dam Nielsen <janus.nielsen@alexandra.dk>
date Fri, 30 Oct 2009 12:23:46 +0100
parents 8a4d4e8e99eb 151d4f58ff49
children 57b5234df725 a798274e8537 36c8915d718a
files
diffstat 1 files changed, 2 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/viff/runtime.py	Fri Oct 30 12:22:46 2009 +0100
+++ b/viff/runtime.py	Fri Oct 30 12:23:46 2009 +0100
@@ -804,14 +804,7 @@
         example of a method fulfilling this interface.
         """
 
-        def update(results, program_counters, start_time, count, what):
-            stop = time.time()
-
-            print
-            print "Total time used: %.3f sec" % (stop - start_time)
-            print "Time per %s operation: %.0f ms" % (what, 1000*(stop - start_time) / count)
-            print "*" * 6
-
+        def update(results, program_counters):
             # Update the pool with pairs of program counter and data.
             self._pool.update(zip(program_counters, results))
 
@@ -831,7 +824,7 @@
                 results = func(quantity=len(program_counters), *args)
                 self.unfork_pc()
                 ready = gatherResults(results)
-                ready.addCallback(update, program_counters[:len(results)], start_time, count, generator)
+                ready.addCallback(update, program_counters[:len(results)])
                 del program_counters[:len(results)]
                 wait_list.append(ready)
             self.unfork_pc()