Skip to content

Instantly share code, notes, and snippets.

@kirang89
Created February 13, 2013 14:24
Show Gist options
  • Save kirang89/4944947 to your computer and use it in GitHub Desktop.
Save kirang89/4944947 to your computer and use it in GitHub Desktop.
Using lambda to create a timer in python
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