A settable stand-in for the module's `monotonic`.
| 14 | |
| 15 | |
| 16 | class 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() |