![]() |
OpenZWave Library 1.6.0
|
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.
| TimeStamp::TimeStamp | ( | ) |
Constructor. Creates a TimeStamp object.
| TimeStamp::~TimeStamp | ( | ) |
Destructor. Destroys the TimeStamp object.
| string TimeStamp::GetAsString | ( | ) |
Return as a string for output.
Overload the subtract operator to get the difference between two timestamps in milliseconds.
| void 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 TimeStamp::TimeRemaining | ( | ) |
TimeRemaining. Gets the difference between now and the timestamp time in milliseconds.