Function caerGenericEventGetTimestamp64

Function Documentation

static inline int64_t caerGenericEventGetTimestamp64(const void *eventPtr, caerEventPacketHeaderConst headerPtr)

Get the main 64 bit timestamp for a generic event, without having to know what event type the packet is containing. This takes the per-packet timestamp into account too, generating a timestamp that doesn’t suffer from overflow problems.

Parameters:
  • eventPtr – a generic pointer to an event. Cannot be NULL.

  • headerPtr – a valid EventPacket header pointer. Cannot be NULL.

Returns:

the main 64 bit timestamp of this event.