Skip to content

Instantly share code, notes, and snippets.

@efraintorlo
Last active January 26, 2016 06:01
Show Gist options
  • Select an option

  • Save efraintorlo/44bfc91355865fea4e2a to your computer and use it in GitHub Desktop.

Select an option

Save efraintorlo/44bfc91355865fea4e2a to your computer and use it in GitHub Desktop.
Get total Run Time
def getRunTime(theFunction, **kwargs):
timeStart = time.time()
theFunction(**kwargs)
timeFinish = time.time()
print 'Time elapsed:{}'.format(timeFinish - timeStart)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment