Time or durations, in milliseconds. More...
#include <utils.h>
Public Types | |
typedef long long unsigned | Value |
storage for time | |
Public Member Functions | |
UnifiedTime | operator* (const long long unsigned factor) const |
Multiply time by an amount. | |
void | operator*= (const long long unsigned factor) |
Multiply time by an amount. | |
UnifiedTime | operator+ (const UnifiedTime &that) const |
Add times. | |
void | operator+= (const UnifiedTime &that) |
Add times. | |
UnifiedTime | operator- (const UnifiedTime &that) const |
Substract times. | |
void | operator-= (const UnifiedTime &that) |
Substract times. | |
UnifiedTime | operator/ (const long long unsigned factor) const |
Divide time by an amount. | |
void | operator/= (const long long unsigned factor) |
Divide time by an amount. | |
bool | operator< (const UnifiedTime &that) const |
Time comparison. | |
void | sleep () const |
Sleep for this amount of time. | |
std::string | toHumanReadableStringFromEpoch () const |
Create a human readable string with this time. | |
std::string | toRawTimeString () const |
Return the raw time string representing this time. | |
UnifiedTime () | |
Constructor, set time to current time. | |
UnifiedTime (Value ms) | |
Constructor, from a specific number of ms. | |
UnifiedTime (Value seconds, Value milliseconds) | |
Constructor, from a specific number of seconds and ms. | |
Static Public Member Functions | |
static UnifiedTime | fromRawTimeString (const std::string &rawTimeString) |
Return the time from the raw time string. | |
Public Attributes | |
Value | value |
time |
typedef long long unsigned Aseba::UnifiedTime::Value |
UnifiedTime Aseba::UnifiedTime::operator* | ( | const long long unsigned | factor | ) | const [inline] |
void Aseba::UnifiedTime::operator*= | ( | const long long unsigned | factor | ) | [inline] |
UnifiedTime Aseba::UnifiedTime::operator+ | ( | const UnifiedTime & | that | ) | const [inline] |
void Aseba::UnifiedTime::operator+= | ( | const UnifiedTime & | that | ) | [inline] |
UnifiedTime Aseba::UnifiedTime::operator- | ( | const UnifiedTime & | that | ) | const [inline] |
void Aseba::UnifiedTime::operator-= | ( | const UnifiedTime & | that | ) | [inline] |
UnifiedTime Aseba::UnifiedTime::operator/ | ( | const long long unsigned | factor | ) | const [inline] |
void Aseba::UnifiedTime::operator/= | ( | const long long unsigned | factor | ) | [inline] |
bool Aseba::UnifiedTime::operator< | ( | const UnifiedTime & | that | ) | const [inline] |