![]() |
OpenZWave Library
1.6.1914
|
Implements a platform-independent TimeStamp. More...
#include <TimeStamp.h>
Public Member Functions | |
TimeStamp () | |
~TimeStamp () | |
void | SetTime (int32 _milliseconds=0) |
int32 | TimeRemaining () |
string | GetAsString () |
int32 | operator- (TimeStamp const &_other) |
Implements a platform-independent TimeStamp.
OpenZWave::Internal::Platform::TimeStamp::TimeStamp | ( | ) |
Constructor. Creates a TimeStamp object.
OpenZWave::Internal::Platform::TimeStamp::~TimeStamp | ( | ) |
Destructor. Destroys the TimeStamp object.
std::string OpenZWave::Internal::Platform::TimeStamp::GetAsString | ( | ) |
Return as a string for output.
Overload the subtract operator to get the difference between two timestamps in milliseconds.
void OpenZWave::Internal::Platform::TimeStamp::SetTime | ( | int32 | _milliseconds = 0 | ) |
SetTime. Sets the timestamp to now, plus the offset in milliseconds.
_milliseconds | optional positive or negative offset from now in milliseconds. Defaults to zero. |
int32 OpenZWave::Internal::Platform::TimeStamp::TimeRemaining | ( | ) |
TimeRemaining. Gets the difference between now and the timestamp time in milliseconds.