An high resolution time counter. More...
#include <Time.h>
An high resolution time counter.
bool SC::Time::HighResolutionCounter::isLaterThanOrEqualTo | ( | HighResolutionCounter | other | ) | const |
Check if this HighResolutionCounter is later or equal to another HighResolutionCounter.
other | The HighResolutionCounter to be used in the comparison |
true
if this HighResolutionCounter is later or equal to another HighResolutionCounter HighResolutionCounter SC::Time::HighResolutionCounter::offsetBy | ( | Milliseconds | ms | ) | const |
Returns a HighResolutionCounter offset by a given number of Milliseconds.
ms | How many Milliseconds the returned HighResolutionCounter must be offset of |
ms
HighResolutionCounter & SC::Time::HighResolutionCounter::snap | ( | ) |
Sets HighResolutionCounter to current instant
Example:
Relative SC::Time::HighResolutionCounter::subtractApproximate | ( | HighResolutionCounter | other | ) | const |
Subtracts another HighResolutionCounter from this one, returning an approximate Relative.
other | The HighResolutionCounter to be subtracted |
HighResolutionCounter SC::Time::HighResolutionCounter::subtractExact | ( | HighResolutionCounter | other | ) | const |
Subtracts another HighResolutionCounter from this one, returning a precise HighResolutionCounter.
other | The HighResolutionCounter to be subtracted |
Milliseconds SC::Time::HighResolutionCounter::toMilliseconds | ( | ) | const |
Converts to Milliseconds.
Nanoseconds SC::Time::HighResolutionCounter::toNanoseconds | ( | ) | const |
Converts to Nanoseconds.