Cope 2.5.0
My personal "standard library" of all the generally useful code I've written for various projects over the years
|
Classes | |
class | getTime |
Functions | |
def | timeFunc (func, accuracy=5) |
def | _printTimingData (accuracy=5) |
def | psleep (seconds, func, rtn=True) |
Variables | |
dict | timingData = {} |
|
protected |
I realized *after* I wrote this that this is a essentially profiler. Oops.
def Cope.experimental.timing.psleep | ( | seconds, | |
func, | |||
rtn = True |
|||
) |
Process sleep: run func in a while loop for a specified amount of time
def Cope.experimental.timing.timeFunc | ( | func, | |
accuracy = 5 |
|||
) |
A function decorator that prints how long it takes for a function to run
dict Cope.experimental.timing.timingData = {} |