class documentation

class StopWatch(Metric): (source)

View In Hierarchy

A counter that measures the time spent in a "with" statement.

Method __enter__ Undocumented
Method __exit__ Undocumented
Method _merge Merge data from another metric of the same type.
Method _summary Return a string summarizing the value of the metric.
Instance Variable _start_time Undocumented
Instance Variable _total Undocumented

Inherited from Metric:

Method __init__ Initialize the metric and register it under the specified name.
Method __str__ Undocumented
Property name Undocumented
Instance Variable _name Undocumented
def __enter__(self): (source)

Undocumented

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

Undocumented

def _merge(self, other): (source)

Merge data from another metric of the same type.

def _summary(self): (source)

Return a string summarizing the value of the metric.

_start_time = (source)

Undocumented

Undocumented