Skip to content

Instantly share code, notes, and snippets.

@davidbarkhuizen
Created December 17, 2015 08:40
Show Gist options
  • Select an option

  • Save davidbarkhuizen/694c409f51460d399196 to your computer and use it in GitHub Desktop.

Select an option

Save davidbarkhuizen/694c409f51460d399196 to your computer and use it in GitHub Desktop.
timer infrastructure
-------------------
python pseudo-code
from pytimer import TreeTimer
root_node = TreeTimer(string_log_function, apex_label)
new_node = treeTimer.start('new node label')
...
new_node.stop('termination message / exit code / omitted')
new_child_of_new_node = new_node.start('new_child_of_new_node label')
# stopping a parent stops all children
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment