Minimal ros::Time() / rplcpp::Time implementation (that doesn't throw)
More...
#include <time.hpp>
|
| | RosTime (const uint32_t sec, const uint32_t nsec) |
| | Constructor.
|
| double | ToSec () const |
| | Convert to seconds.
|
| uint64_t | ToNSec () const |
| | Convert to nanoseconds.
|
| bool | IsZero () const |
| | Check if time is zero (invalid, unset)
|
|
bool | operator== (const RosTime &rhs) const |
| | Equal.
|
|
| uint32_t | sec_ |
| | Seconds part of time.
|
| uint32_t | nsec_ |
| | Nanoseconds part of time (should be in range 0-999999999)
|
Minimal ros::Time() / rplcpp::Time implementation (that doesn't throw)
Definition at line 155 of file time.hpp.
◆ RosTime()
| fpsdk::common::time::RosTime::RosTime |
( |
const uint32_t | sec, |
|
|
const uint32_t | nsec ) |
Constructor.
- Parameters
-
| [in] | sec | Time value seconds |
| [in] | nsec | Time value nanoseconds |
◆ ToSec()
| double fpsdk::common::time::RosTime::ToSec |
( |
| ) |
const |
Convert to seconds.
- Returns
- the time value (time since epoch) in [s]
◆ ToNSec()
| uint64_t fpsdk::common::time::RosTime::ToNSec |
( |
| ) |
const |
Convert to nanoseconds.
- Returns
- the time value (time since epoch) in [ns]
◆ IsZero()
| bool fpsdk::common::time::RosTime::IsZero |
( |
| ) |
const |
Check if time is zero (invalid, unset)
- Returns
- true if time is zero (invalid, unset)
◆ sec_
| uint32_t fpsdk::common::time::RosTime::sec_ |
Seconds part of time.
Definition at line 187 of file time.hpp.
◆ nsec_
| uint32_t fpsdk::common::time::RosTime::nsec_ |
Nanoseconds part of time (should be in range 0-999999999)
Definition at line 188 of file time.hpp.
The documentation for this struct was generated from the following file:
- fpsdk_common/include/fpsdk_common/time.hpp