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

Function Documentation

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

Get the Unix Nanoseconds from Generation Delta Time object.

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

  • unix_timestamp_estimate – estimated unix-time (in Nanoseconds) 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