HWTimestamper#

class HWTimestamper(last_timestamp: int)[source]#

Bases: object

Contiguous nanosecond timestamps for hardware-timed DAQ batches.

Anchors to the wall clock exactly once via seed(), then advances by sample period on every next_batch() call — eliminates timestamp overlap when consecutive reads return in rapid succession.

Methods

next_batch

Return length ns timestamps at dt spacing, continuing from the previous batch.

seed

Anchor the timeline at t_wall ns (read-return time of the first batch).