Created
June 25, 2014 09:30
-
-
Save lwzm/15ffdcc7e88a4b54a352 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def timeit(func): | |
| from time import time | |
| def wrapper(*args, **kwargs): | |
| t = time() | |
| func(*args, **kwargs) | |
| print(func.__name__, time() - t) | |
| return wrapper |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment