A Time class, can be used to hold wall- or sim-time.
More...
#include <Types.hh>
A Time class, can be used to hold wall- or sim-time.
stored as sec and nano-sec.
◆ Time() [1/2]
sdf::SDF_VERSION_NAMESPACE::Time::Time |
( |
| ) |
|
|
inline |
◆ Time() [2/2]
sdf::SDF_VERSION_NAMESPACE::Time::Time |
( |
int32_t |
_sec, |
|
|
int32_t |
_nsec |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
[in] | _sec | Seconds |
[in] | _nsec | Nanoseconds |
◆ operator==()
bool sdf::SDF_VERSION_NAMESPACE::Time::operator== |
( |
const Time & |
_time | ) |
const |
|
inline |
Equal to operator.
- Parameters
-
[in] | _time | the time to compare to. |
- Returns
- true if values are the same, false otherwise.
References nsec, and sec.
◆ nsec
int32_t sdf::SDF_VERSION_NAMESPACE::Time::nsec |
◆ sec
int32_t sdf::SDF_VERSION_NAMESPACE::Time::sec |
The documentation for this class was generated from the following file: