MCPcopy Create free account
hub / github.com/livekit/agents / __init__

Method __init__

tests/virtual_time.py:299–305  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

297 """
298
299 def __init__(self) -> None:
300 self._virtual_clock = _VirtualClock()
301 super().__init__(selector=_AutojumpSelector(self._virtual_clock))
302 # Resolve finely enough that the sub-nanosecond tie-break is representable and only the
303 # exact-same-instant timer fires per jump.
304 self._clock_resolution = _FINE_RESOLUTION
305 self._tie_seq = 0
306
307 def time(self) -> float:
308 return self._virtual_clock.time()

Callers

nothing calls this directly

Calls 3

_VirtualClockClass · 0.85
_AutojumpSelectorClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected