Osiris Framework
0.3
|
Deals with the elapsed simulation time. More...
#include <OsirisSDK/OTimeIndex.h>
Public Member Functions | |
OTimeIndex () | |
Class constructor. | |
OTimeIndex (int sec, int usec) | |
Class constructor. More... | |
OTimeIndex (long long timeIndex_us) | |
Class constructor. More... | |
virtual | ~OTimeIndex () |
Class destructor. | |
OTimeIndex | operator- (const OTimeIndex &in) const |
Subtraction operator. | |
OTimeIndex | operator- (int in) const |
Subtraction operator. More... | |
OTimeIndex & | operator-= (const OTimeIndex &in) |
Subtraction operator. | |
OTimeIndex & | operator-= (int in) |
Subtraction operator. More... | |
OTimeIndex | operator+ (const OTimeIndex &in) const |
Addition operator. | |
OTimeIndex | operator+ (int in) const |
Addition operator. More... | |
OTimeIndex & | operator+= (const OTimeIndex &in) |
Addition operator. | |
OTimeIndex & | operator+= (int in) |
Addition operator. More... | |
OTimeIndex & | operator= (int in) |
Assignment operator. More... | |
bool | operator< (const OTimeIndex &in) const |
Less than comparison operator. | |
bool | operator< (int in) const |
Less than comparison operator. More... | |
bool | operator> (const OTimeIndex &in) const |
Greater than comparison operator. | |
bool | operator> (int in) const |
Greater than comparison operator. More... | |
bool | operator<= (const OTimeIndex &in) const |
Less than or equal comparison operator. | |
bool | operator<= (int in) const |
Less than or equal comparison operator. More... | |
bool | operator>= (const OTimeIndex &in) const |
Greater than or equal comparison operator. | |
bool | operator>= (int in) const |
Greater than or equal comparison operator. More... | |
bool | operator== (const OTimeIndex &in) const |
Equals comparison operator. | |
bool | operator== (int in) const |
Equal comparison operator. More... | |
bool | operator!= (const OTimeIndex &in) const |
Not equal comparison operator. | |
bool | operator!= (int in) const |
Not equal comparison operator. More... | |
void | setValue (int sec, int uSec) |
Set time index component values. More... | |
int | sec () const |
Returns the time index as an integer in seconds. | |
int | uSec () const |
Returns the additional microseconds part of the index. | |
int | toInt () const |
Converts the time index to an integer in microseconds. | |
Static Public Member Functions | |
static void | init () |
Class initialization method. | |
static OTimeIndex | current () |
Returns current time index. | |
Deals with the elapsed simulation time.
OTimeIndex::OTimeIndex | ( | int | sec, |
int | usec | ||
) |
Class constructor.
sec | Time in seconds. |
usec | Additional time in microseconds. |
OTimeIndex::OTimeIndex | ( | long long | timeIndex_us | ) |
Class constructor.
timeIndex_ms | Time index in microseconds. |
|
inline |
Not equal comparison operator.
in Time index in microseconds.
|
inline |
Addition operator.
in | Time index in microseconds. |
|
inline |
Addition operator.
in | Time index in microseconds. |
|
inline |
Subtraction operator.
in | Time index in microseconds. |
|
inline |
Subtraction operator.
in | Time index in microseconds. |
|
inline |
Less than comparison operator.
in | Time index in microseconds. |
|
inline |
Less than or equal comparison operator.
in | Time index in microseconds. |
|
inline |
Assignment operator.
in | Time index in microseconds. |
|
inline |
Equal comparison operator.
in Time index in microseconds.
|
inline |
Greater than comparison operator.
in | Time index in microseconds. |
|
inline |
Greater than or equal comparison operator.
in | Time index in microseconds. |
void OTimeIndex::setValue | ( | int | sec, |
int | uSec | ||
) |
Set time index component values.
sec | Time in seconds. |
usec | Additional time in microseconds. |