changeset 1372:151d4f58ff49

runtime: Removed timing output in preprocessing.
author Marcel Keller <mkeller@cs.au.dk>
date Thu, 29 Oct 2009 15:42:26 +0100
parents 62c4034a06a3
children 8144c02c12f6
files viff/runtime.py
diffstat 1 files changed, 2 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/viff/runtime.py	Thu Oct 29 14:43:25 2009 +0100
+++ b/viff/runtime.py	Thu Oct 29 15:42:26 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()