MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / Clock

Class Clock

tests/lib/tools/memory_sync/conftest.py:16–23  ·  view source on GitHub ↗

A settable stand-in for the module's `monotonic`.

Source from the content-addressed store, hash-verified

14
15
16class Clock:
17 """A settable stand-in for the module's `monotonic`."""
18
19 def __init__(self) -> None:
20 self.now = 0.0
21
22 def __call__(self) -> float:
23 return self.now
24
25
26@pytest.fixture()

Callers 1

clockFunction · 0.85

Calls

no outgoing calls

Tested by 1

clockFunction · 0.68