|
Cope 2.5.0
My personal "standard library" of all the generally useful code I've written for various projects over the years
|
A class to use with a with statement like so: with getTime('sleep'): time.sleep(10) It will then print how long the enclosed code took to run. More...
Public Member Functions | |
| def | __init__ (self, name, accuracy=5) |
| def | __enter__ (self) |
| def | __exit__ (self, *args) |
Public Attributes | |
| name | |
| accuracy | |
| t | |
A class to use with a with statement like so: with getTime('sleep'): time.sleep(10) It will then print how long the enclosed code took to run.