From c312832c704e99a1fa7464c561be5830541e4d0a Mon Sep 17 00:00:00 2001 From: Steven Berler Date: Thu, 14 Jul 2011 11:26:56 -0700 Subject: [PATCH] use time.time() instead of time.clock() We want to measure actual time, not cpu time. --- s3tests/rand_readwrite.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/s3tests/rand_readwrite.py b/s3tests/rand_readwrite.py index 28b845c..ab0a416 100644 --- a/s3tests/rand_readwrite.py +++ b/s3tests/rand_readwrite.py @@ -53,9 +53,9 @@ def reader(seconds, bucket, name=None, queue=None): count = 0 for key in bucket.list(): fp = realistic.FileVerifier() - start = time.clock() + start = time.time() key.get_contents_to_file(fp) - end = time.clock() + end = time.time() elapsed = end - start if queue: queue.put( @@ -86,9 +86,9 @@ def writer(seconds, bucket, name=None, queue=None, quantity=1, file_size=1, file seed=r, ) - start = time.clock() + start = time.time() generate_objects.upload_objects(bucket, files, r2) - end = time.clock() + end = time.time() elapsed = end - start if queue: