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 d9cf29a..1854159 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