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

Method __update_stat

utils/stopwatch.py:72–80  ·  view source on GitHub ↗
(self, v)

Source from the content-addressed store, hash-verified

70 return self.__last * 1000
71
72 def __update_stat(self, v):
73 # :param v: float unit of ms
74 if self.__first:
75 self.__first = False
76 return
77 if self.min == 0.0 or self.min > v:
78 self.min = v
79 if self.max < v:
80 self.max = v
81
82 def checkpoint(self, name=''):
83 span = self.elapsed

Callers 1

checkpointMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected