Class Time_t
Defined in File Time_t.h
Class Documentation
-
class Time_t
Structure Time_t, used to describe times at RTPS protocol.
Public Functions
-
Time_t() = default
Default constructor. Sets values to zero.
-
Time_t(long double sec)
- Parameters
sec – Seconds. The fractional part is converted to nanoseconds.
-
Time_t(const eprosima::fastrtps::Time_t &time)
- Parameters
time – fastrtps::Time_t, aka. Duration_t.
-
void from_ns(int64_t nanosecs)
- Parameters
nanosecs – Stores given time as nanoseconds (including seconds)
-
Duration_t to_duration_t() const
-
void from_duration_t(const Duration_t &duration)
-
Time_t() = default