class documentation

class TimeWarner:

Constructor: TimeWarner(name, warn_time)

View In Hierarchy

context manager to print the time spent iff it exceeds a threshold.

Usage: with TimeWarner('saving'):, the argument is used only for printing the message in case.

Method __enter__ Undocumented
Method __exit__ Undocumented
Method __init__ Undocumented
Instance Variable name Undocumented
Instance Variable t0 Undocumented
Instance Variable t1 Undocumented
Instance Variable warn_time Undocumented
def __enter__(self):

Undocumented

def __exit__(self, exc_type, exc_value, traceback):

Undocumented

def __init__(self, name, warn_time=2):

Undocumented

name =

Undocumented

t0 =

Undocumented

t1 =

Undocumented

warn_time =

Undocumented