diff options
author | Guido van Rossum <guido@python.org> | 1994-02-17 12:36:58 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1994-02-17 12:36:58 +0000 |
commit | 50793b87f97c49f659a746c7d72f966d213856f2 (patch) | |
tree | b76fc14696f12dd6fe130df2ad5a881cc4198d44 /Demo/threads | |
parent | d626a9a67ee2676789fe793ab6f03e058f0bae05 (diff) | |
download | cpython-50793b87f97c49f659a746c7d72f966d213856f2.tar.gz |
Use time.time() instead of time.millitimer()
Diffstat (limited to 'Demo/threads')
-rw-r--r-- | Demo/threads/find.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Demo/threads/find.py b/Demo/threads/find.py index e97bd99be0..3bc54feba0 100644 --- a/Demo/threads/find.py +++ b/Demo/threads/find.py @@ -110,11 +110,11 @@ def main(): for dir in args: wq.addwork(find, (dir, selector, wq)) - t1 = time.millitimer() + t1 = time.time() wq.run(nworkers) - t2 = time.millitimer() + t2 = time.time() - sys.stderr.write('Total time ' + `t2-t1` + ' msec.\n') + sys.stderr.write('Total time ' + `t2-t1` + ' sec.\n') # The predicate -- defines what files we look for. |