An high resolution time counter. More...
#include <Time.h>
Public Member Functions | |
HighResolutionCounter & | snap () |
Sets HighResolutionCounter to current instant Example: More... | |
HighResolutionCounter | offsetBy (Milliseconds ms) const |
Returns a HighResolutionCounter offset by a given number of Milliseconds. More... | |
bool | isLaterThanOrEqualTo (HighResolutionCounter other) const |
Check if this HighResolutionCounter is later or equal to another HighResolutionCounter. More... | |
Relative | subtractApproximate (HighResolutionCounter other) const |
Subtracts another HighResolutionCounter from this one, returning an approximate Relative. More... | |
HighResolutionCounter | subtractExact (HighResolutionCounter other) const |
Subtracts another HighResolutionCounter from this one, returning a precise HighResolutionCounter. More... | |
Relative | getRelative () const |
Public Attributes | |
int64_t | part1 |
int64_t | part2 |
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 |