#include <nap/datetime.h>
Public Member Functions | |
| TimeStamp ()=default | |
| TimeStamp (int64_t timeStamp) | |
| TimeStamp (const SystemTimeStamp &systemTime) | |
| void | fromSystemTime (const SystemTimeStamp &systemTime) |
| SystemTimeStamp | toSystemTime () const |
| bool | isValid () const |
Public Attributes | |
| int64_t | mTimeStamp = -1 |
| Property: 'Time' time since epoch stored as long. More... | |
A serializable time stamp, represented as a 64 bit long value. Use this object when serialization / de-serialization of a point in time is necessary. When dealing with time at run-time use the default nap::DateTime object. This is a relatively light weight object that can be both copy and move constructed or assigned.
|
default |
Default Constructor
| TimeStamp | ( | int64_t | timeStamp | ) |
Default Constructor
| timeStamp | time since epoch as long |
| TimeStamp | ( | const SystemTimeStamp & | systemTime | ) |
Constructor based on given system time. Converts system time to a long that can be serialized.
| systemTime | system time stamp to convert to serializable time stamp. |
| void fromSystemTime | ( | const SystemTimeStamp & | systemTime | ) |
Converts a system time stamp into a long that can be serialized
| systemTime | time stamp to convert |
| bool isValid | ( | ) | const |
| SystemTimeStamp toSystemTime | ( | ) | const |
| int64_t mTimeStamp = -1 |
Property: 'Time' time since epoch stored as long.