Skip to content

Instantly share code, notes, and snippets.

@tailhook
Created February 10, 2016 22:13
Show Gist options
  • Select an option

  • Save tailhook/618f84de4c983ed4c7dc to your computer and use it in GitHub Desktop.

Select an option

Save tailhook/618f84de4c983ed4c7dc to your computer and use it in GitHub Desktop.
from time import time, clock
# .. later
start = time() # clock()
carbon.add("py.stator.random.int", v1)
carbon.add("py.stator.random.float", v2)
end = time() # clock()
print(format(end - start, '0.5f'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment