Files
sientia-dataops-opc-ingestor/tests/unit/connection/test_clock.py
2026-07-13 18:39:23 -03:00

9 lines
253 B
Python

from ingestor.connection.clock import MonotonicClock
def test_elapsed_is_non_negative_and_monotonic():
clk = MonotonicClock()
a = clk.elapsed()
b = clk.elapsed()
assert a >= 0 and b >= a # never negative even if wall clock jumps back