31 return sequenceNumber;
41 return sequenceNumber >= 0;
46 return std::numeric_limits<int>::max();
53 if (sequenceNumber >= getMaxCount() || sequenceNumber < 0) {
63 if (sequenceNumber >= getMaxCount() || sequenceNumber < 0) {
std::int32_t sequenceNumber
int getMaxCount() const
Get the maximum sequence number, after which an incrementing sequence should return to zero.
void update()
Set the timestamp to the current time, and increment the sequence number (wrapping to 0 if the sequen...
double getTime() const
Get the time stamp.
bool isValid() const
Check if this Stamp is valid.
Stamp()
Construct an invalid Stamp.
int getCount() const
Get the sequence number.
double now()
Return the current time in seconds, relative to an arbitrary starting point.