Commit 0f199821 authored by Chris McDonough's avatar Chris McDonough

Supercharge fauxtime to reduce the time taken for tests.

parent cc7bf727
......@@ -3,9 +3,9 @@ import time as origtime
epoch = origtime.time()
def time():
""" False timer -- returns time 10 x faster than normal time """
return (origtime.time() - epoch) * 10.0
""" False timer -- returns time 60 x faster than normal time """
return (origtime.time() - epoch) * 60.0
def sleep(duration):
""" False sleep -- sleep for 1/10 the time specifed """
origtime.sleep(duration / 10.0)
""" False sleep -- sleep for 1/60 the time specifed """
origtime.sleep(duration / 60.0)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment