Structure Time_t, used to describe times at a DDS level.
More...
#include <Time_t.hpp>
|
| | Time_t () |
| | Default constructor. Sets values to zero.
|
| | Time_t (int32_t sec, uint32_t nsec) |
| | Time_t (long double sec) |
| void | fraction (uint32_t frac) |
| uint32_t | fraction () const |
| int64_t | to_ns () const |
| | Returns stored time as nanoseconds (including seconds).
|
| bool | is_infinite () const noexcept |
Structure Time_t, used to describe times at a DDS level.
◆ Time_t() [1/3]
Default constructor. Sets values to zero.
◆ Time_t() [2/3]
| Time_t |
( |
int32_t | sec, |
|
|
uint32_t | nsec ) |
- Parameters
-
| sec | Seconds |
| nsec | Nanoseconds |
◆ Time_t() [3/3]
| Time_t |
( |
long double | sec | ) |
|
- Parameters
-
| sec | Seconds. The fractional part is converted to nanoseconds. |
◆ fraction() [1/2]
| uint32_t fraction |
( |
| ) |
const |
◆ fraction() [2/2]
| void fraction |
( |
uint32_t | frac | ) |
|
◆ is_infinite() [1/2]
| bool is_infinite |
( |
| ) |
const |
|
inlinenoexcept |
◆ is_infinite() [2/2]
| constexpr bool is_infinite |
( |
const Time_t & | t | ) |
|
|
inlinestaticconstexprnoexcept |
◆ now()
Fills a Time_t struct with a representation of the current time.
- Parameters
-
| ret | Reference to the structure to be filled in. |
◆ to_ns()
Returns stored time as nanoseconds (including seconds).
◆ INFINITE_NANOSECONDS
| uint32_t INFINITE_NANOSECONDS = 0xffffffffu |
|
staticconstexpr |
◆ INFINITE_SECONDS
| int32_t INFINITE_SECONDS = 0x7fffffff |
|
staticconstexpr |
◆ nanosec
◆ seconds
The documentation for this struct was generated from the following file: