MCPcopy Index your code
hub / github.com/dronekit/dronekit-python / update

Method update

examples/performance_test/performance_test.py:71–79  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

69
70
71 def update(self):
72 now = cur_usec()
73 self.numcount = self.numcount + 1
74 self.previnterval = now - self.prevtime
75 self.prevtime = now
76 if self.numcount>1: #ignore first value where self.prevtime not reliable.
77 self.maxinterval = max(self.previnterval, self.maxinterval)
78 self.mininterval = min(self.mininterval, self.previnterval)
79 self.log()
80
81
82acktime = MeasureTime()

Callers 2

listenerFunction · 0.80
_run_serverMethod · 0.80

Calls 2

logMethod · 0.95
cur_usecFunction · 0.85

Tested by

no test coverage detected