update task.time
authorPaul Brossier <piem@altern.org>
Thu, 16 Mar 2006 15:58:01 +0000 (15:58 +0000)
committerPaul Brossier <piem@altern.org>
Thu, 16 Mar 2006 15:58:01 +0000 (15:58 +0000)
update task.time

python/aubio/task/task.py

index d9cf29ab4eaedcbee577cddf4f610b9ac72e8315..185415943a24645953af0a9aae7479c8e0b6b2aa 100644 (file)
@@ -49,6 +49,7 @@ class task(taskparams):
 
        def time(self):
                import time
-               print "CPU time is now %f seconds," % time.clock(),
-               print "task execution took %f seconds" % (time.time() - self.tic)
+               #print "CPU time is now %f seconds," % time.clock(),
+               #print "task execution took %f seconds" % (time.time() - self.tic)
+               return time.time() - self.tic