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

Function cur_usec

examples/performance_test/performance_test.py:45–50  ·  view source on GitHub ↗

Return current time in usecs

()

Source from the content-addressed store, hash-verified

43
44
45def cur_usec():
46 """Return current time in usecs"""
47 # t = time.time()
48 dt = datetime.now()
49 t = dt.minute * 60 + dt.second + dt.microsecond / (1e6)
50 return t
51
52class MeasureTime(object):
53 def __init__(self):

Callers 2

__init__Method · 0.85
updateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected