etsi_its_messages v3.4.0
Loading...
Searching...
No Matches
cpm_ts_utils.h File Reference

Utility functions for the ETSI ITS CPM (TS). More...

Go to the source code of this file.

Functions

uint64_t getUnixNanosecondsFromReferenceTime (const TimestampIts &reference_time)
 Get the Unix-Nanoseconds from a given ReferenceTime object.

Detailed Description

Utility functions for the ETSI ITS CPM (TS).

Definition in file cpm_ts_utils.h.

Function Documentation

◆ getUnixNanosecondsFromReferenceTime()

uint64_t getUnixNanosecondsFromReferenceTime ( const TimestampIts & reference_time)
inline

Get the Unix-Nanoseconds from a given ReferenceTime object.

Parameters
reference_timethe ReferenceTime object to get the Unix-Nanoseconds from
n_leap_secondsnumber of leap-seconds since 2004. (Default: etsi_its_msgs::N_LEAP_SECONDS)
Returns
uint64_t the corresponding Unix-Nanoseconds

Definition at line 41 of file cpm_ts_utils.h.