![]() |
Dataflow Runtime API
3.0.3.0
|
This class represents a TimePeriod in ticks. More...
#include <Imt.Base.OS.WinEC7/TimePeriod.h>
Public Member Functions | |
virtual | ~TimePeriod (void) |
Destructor. More... | |
TimePeriod (const TimePeriod &other) | |
Provide the copy constructor so the compiler does not generate the default one. More... | |
TimePeriod & | operator= (const TimePeriod &other) |
Provide the assignment operator so the compiler does not generate the default one. More... | |
const TimePeriod & | operator+= (const TimePeriod &timePeriod) |
Operator "+=", this += timePeriod. More... | |
const TimePeriod & | operator-= (const TimePeriod &timePeriod) |
Operator "-=", this -= timePeriod. More... | |
bool | operator> (const TimePeriod &timePeriod) const |
Operator ">", bool = this > timePeriod. More... | |
bool | operator>= (const TimePeriod &timePeriod) const |
Operator ">=", bool = this > timePeriod. More... | |
bool | operator< (const TimePeriod &timePeriod) const |
Operator "<", bool = this < timePeriod. More... | |
bool | operator<= (const TimePeriod &timePeriod) const |
Operator "<=", bool = this <= timePeriod. More... | |
bool | operator== (const TimePeriod &timePeriod) const |
Operator "==", bool = this == timePeriod. More... | |
bool | operator!= (const TimePeriod &timePeriod) const |
Operator "!=", bool = this != timePeriod. More... | |
uint32_t | getSeconds (void) const |
Gets the number of seconds represented by this TimePeriod. More... | |
uint32_t | getMilliSeconds (void) const |
Gets the number of milliseconds represented by this TimePeriod. More... | |
uint32_t | getMicroSeconds (void) const |
Gets the number of micro seconds represented by this TimePeriod. More... | |
uint32_t | getTicks (void) const |
Gets the number of ticks represented by this TimePeriod. More... | |
Static Public Member Functions | |
static TimePeriod | fromSeconds (uint32_t seconds) |
Creates a TimePeriod from the given amount of seconds. More... | |
static TimePeriod | fromMilliSeconds (uint32_t milliSeconds) |
Creates a TimePeriod form the given amount of milliseconds. More... | |
static TimePeriod | fromMicroSeconds (uint32_t microSeconds) |
Creates a TimePeriod from the given amount of microseconds. More... | |
static TimePeriod | fromTicks (uint32_t ticks) |
Creates a TimePeriod from the given amount of ticks. More... | |
This class represents a TimePeriod in ticks.
Attention: internal calculation is done with a uint32_t. This results in a maximum time period of 1.19 h. A tick gets its unit by the concrete implementation of Imt.Dff.OS.WinEC7.SystemTime.
|
virtual |
Destructor.
imt::base::os::winec7::TimePeriod::TimePeriod | ( | const TimePeriod & | other | ) |
Provide the copy constructor so the compiler does not generate the default one.
other | Another TimePeriod instance whose members get copied. |
|
static |
Creates a TimePeriod from the given amount of microseconds.
microSeconds | Number of micro seconds over which the created TimePeriod spans. |
|
static |
Creates a TimePeriod form the given amount of milliseconds.
milliSeconds | Number of milli seconds over which the created TimePeriod spans. |
|
static |
Creates a TimePeriod from the given amount of seconds.
seconds | Number of seconds over which the created TimePeriod spans. |
|
static |
Creates a TimePeriod from the given amount of ticks.
ticks | Number of ticks over which the created TimePeriod spans. |
uint32_t imt::base::os::winec7::TimePeriod::getMicroSeconds | ( | void | ) | const |
Gets the number of micro seconds represented by this TimePeriod.
uint32_t imt::base::os::winec7::TimePeriod::getMilliSeconds | ( | void | ) | const |
Gets the number of milliseconds represented by this TimePeriod.
uint32_t imt::base::os::winec7::TimePeriod::getSeconds | ( | void | ) | const |
Gets the number of seconds represented by this TimePeriod.
uint32_t imt::base::os::winec7::TimePeriod::getTicks | ( | void | ) | const |
Gets the number of ticks represented by this TimePeriod.
bool imt::base::os::winec7::TimePeriod::operator!= | ( | const TimePeriod & | timePeriod | ) | const |
Operator "!=", bool = this != timePeriod.
timePeriod | Time period to which gets compared. |
const TimePeriod& imt::base::os::winec7::TimePeriod::operator+= | ( | const TimePeriod & | timePeriod | ) |
Operator "+=", this += timePeriod.
timePeriod | Time period that gets added to this. |
const TimePeriod& imt::base::os::winec7::TimePeriod::operator-= | ( | const TimePeriod & | timePeriod | ) |
Operator "-=", this -= timePeriod.
timePeriod | Time period that gets subtracted to this. |
bool imt::base::os::winec7::TimePeriod::operator< | ( | const TimePeriod & | timePeriod | ) | const |
Operator "<", bool = this < timePeriod.
timePeriod | Time period to which gets compared. |
bool imt::base::os::winec7::TimePeriod::operator<= | ( | const TimePeriod & | timePeriod | ) | const |
Operator "<=", bool = this <= timePeriod.
timePeriod | Time period to which gets compared. |
TimePeriod& imt::base::os::winec7::TimePeriod::operator= | ( | const TimePeriod & | other | ) |
Provide the assignment operator so the compiler does not generate the default one.
other | Another TimePeriod instance whose members get copied. |
bool imt::base::os::winec7::TimePeriod::operator== | ( | const TimePeriod & | timePeriod | ) | const |
Operator "==", bool = this == timePeriod.
timePeriod | Time period to which gets compared. |
bool imt::base::os::winec7::TimePeriod::operator> | ( | const TimePeriod & | timePeriod | ) | const |
Operator ">", bool = this > timePeriod.
timePeriod | Time period to which gets compared. |
bool imt::base::os::winec7::TimePeriod::operator>= | ( | const TimePeriod & | timePeriod | ) | const |
Operator ">=", bool = this > timePeriod.
timePeriod | Time period to which gets compared. |