diff options
author | Guido van Rossum <guido@python.org> | 1994-02-17 12:36:58 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1994-02-17 12:36:58 (GMT) |
commit | e69d3fec87c4624e1d88d66efb7232ba5818a516 (patch) | |
tree | ab4ac32bb28e4a5163ba1b043ce0e1645943e01d /Demo/threads/find.py | |
parent | d9193c67d66c63e329d01cea009bace2ae67480e (diff) | |
download | cpython-e69d3fec87c4624e1d88d66efb7232ba5818a516.zip cpython-e69d3fec87c4624e1d88d66efb7232ba5818a516.tar.gz cpython-e69d3fec87c4624e1d88d66efb7232ba5818a516.tar.bz2 |
Use time.time() instead of time.millitimer()
Diffstat (limited to 'Demo/threads/find.py')
-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 e97bd99..3bc54fe 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. |