Skip to content

Instantly share code, notes, and snippets.

@ajtulloch
Created January 5, 2014 03:47
Show Gist options
  • Save ajtulloch/8264086 to your computer and use it in GitHub Desktop.
Save ajtulloch/8264086 to your computer and use it in GitHub Desktop.
Python 2.7.5 (default, Sep 28 2013, 16:34:22)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.2.75)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> with timer():
... import time
... time.sleep(1)
...
Seconds elapsed: 1.00157
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment