Function getUnixNanosecondsFromGenerationDeltaTime(const GenerationDeltaTime&, const TimestampIts&, const uint16_t)

Function Documentation

inline uint64_t getUnixNanosecondsFromGenerationDeltaTime(const GenerationDeltaTime &generation_delta_time, const TimestampIts &timestamp_estimate, const uint16_t n_leap_seconds = etsi_its_msgs::LEAP_SECOND_INSERTIONS_SINCE_2004.rbegin()->second)

Get the Unix-Nanoseconds from a given GenerationDeltaTime object.

Parameters:
  • generation_delta_time – the GenerationDeltaTime object to get the Unix-Nanoseconds from

  • timestamp_estimate – estimated time to calculate the corresponding generation from

  • n_leap_seconds – number of leap-seconds since 2004. (Defaults to the todays number of leap seconds since 2004.)

Returns:

uint64_t the corresponding Unix-Nanoseconds