Cope 2.5.0
My personal "standard library" of all the generally useful code I've written for various projects over the years
Loading...
Searching...
No Matches
Cope.experimental.timing.getTime Class Reference

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
 

Detailed Description

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.

Definition at line 43 of file timing.py.


The documentation for this class was generated from the following file: