1.1 --- a/examples/simple_managed_queue.py Sat Sep 15 19:41:49 2007 +0000
1.2 +++ b/examples/simple_managed_queue.py Sat Sep 15 19:42:24 2007 +0000
1.3 @@ -28,11 +28,12 @@
1.4
1.5 if __name__ == "__main__":
1.6
1.7 + t = time.time()
1.8 +
1.9 # Initialise the communications queue with a limit on the number of
1.10 # channels/processes.
1.11
1.12 queue = pprocess.Queue(limit=limit)
1.13 - t = time.time()
1.14
1.15 # Initialise an array.
1.16
1.17 @@ -57,10 +58,11 @@
1.18
1.19 # Show the results.
1.20
1.21 - print "Time taken:", time.time() - t
1.22 for i in range(0, N):
1.23 for result in results[i*N:i*N+N]:
1.24 print result,
1.25 print
1.26
1.27 + print "Time taken:", time.time() - t
1.28 +
1.29 # vim: tabstop=4 expandtab shiftwidth=4