Created
February 13, 2013 14:24
-
-
Save kirang89/4944947 to your computer and use it in GitHub Desktop.
Using lambda to create a timer in python
This file contains 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
import time | |
start = time.time() | |
tic = lambda: 'at %1.1f seconds' % (time.time() - start) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment