Function caerEventPacketHeaderGetEventTSOverflow
Defined in File common.h
Function Documentation
-
static inline int32_t caerEventPacketHeaderGetEventTSOverflow(caerEventPacketHeaderConst header)
Get the 32 bit timestamp overflow counter (in microseconds). This is per-packet and is used to generate a 64 bit timestamp that never wraps around. Since timestamps wrap around after some time, being only 31 bit (32 bit signed int), another timestamp at the packet level provides another 31 bit (32 bit signed int), to enable the generation of a 62 bit (64 bit signed int) microsecond timestamp which is guaranteed to never wrap around (in the next 146’138 years at least).
- Parameters:
header – a valid EventPacket header pointer. Cannot be NULL.
- Returns:
the packet-level timestamp overflow counter, in microseconds.