MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / _to_micros

Function _to_micros

pymongo/monitoring.py:465–467  ·  view source on GitHub ↗

Convert duration 'dur' to microseconds.

(dur: timedelta)

Source from the content-addressed store, hash-verified

463
464
465def _to_micros(dur: timedelta) -> int:
466 """Convert duration 'dur' to microseconds."""
467 return int(dur.total_seconds() * 10e5)
468
469
470def _validate_event_listeners(

Callers 2

__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected