17.2.2.19.4. eprosima::fastrtps::Time_t

struct eprosima::fastrtps::Time_t

Structure Time_t, used to describe times.

Public Functions

Time_t()

Default constructor. Sets values to zero.

Time_t(int32_t sec, uint32_t nsec)
Parameters
  • sec – Seconds

  • nsec – Nanoseconds

Time_t(long double sec)
Parameters

sec – Seconds. The fractional part is converted to nanoseconds.

int64_t to_ns() const

Returns stored time as nanoseconds (including seconds)

Public Static Functions

static void now(Time_t &ret)

Fills a Time_t struct with a representation of the current time.

Parameters

ret – Reference to the structure to be filled in.