Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
sdf::SDF_VERSION_NAMESPACE::Time Class Reference

A Time class, can be used to hold wall- or sim-time. More...

#include <Types.hh>

Public Member Functions

 Time ()
 Constructor.
 
 Time (int32_t _sec, int32_t _nsec)
 Constructor.
 
bool operator== (const Time &_time) const
 Equal to operator.
 

Public Attributes

int32_t nsec
 Nanoseconds.
 
int32_t sec
 Seconds.
 

Detailed Description

A Time class, can be used to hold wall- or sim-time.

stored as sec and nano-sec.

Constructor & Destructor Documentation

◆ Time() [1/2]

sdf::SDF_VERSION_NAMESPACE::Time::Time ( )
inline

Constructor.

◆ Time() [2/2]

sdf::SDF_VERSION_NAMESPACE::Time::Time ( int32_t  _sec,
int32_t  _nsec 
)
inline

Constructor.

Parameters
[in]_secSeconds
[in]_nsecNanoseconds

Member Function Documentation

◆ operator==()

bool sdf::SDF_VERSION_NAMESPACE::Time::operator== ( const Time _time) const
inline

Equal to operator.

Parameters
[in]_timethe time to compare to.
Returns
true if values are the same, false otherwise.

References nsec, and sec.

Member Data Documentation

◆ nsec

int32_t sdf::SDF_VERSION_NAMESPACE::Time::nsec

Nanoseconds.

Referenced by operator==().

◆ sec

int32_t sdf::SDF_VERSION_NAMESPACE::Time::sec

Seconds.

Referenced by operator==().


The documentation for this class was generated from the following file: