MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / __init__

Method __init__

utils/stopwatch.py:48–56  ·  view source on GitHub ↗
(self, name='', logger=None)

Source from the content-addressed store, hash-verified

46 _tfunc = time.clock if os.name == "nt" else time.time
47
48 def __init__(self, name='', logger=None):
49 self.name = name
50 self.start = Stopwatch._tfunc()
51 self.__last = self.start
52 # __last field is means last checkpoint system clock value?
53 self.logger = logger
54 self.min = 0.0
55 self.max = 0.0
56 self.__first = True
57
58 @property
59 def stat(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected