Timestamp Handler.
More...
#include <TimestampHandler.h>
|
std::chrono::milliseconds | latest {} |
|
◆ TimestampHandler()
sese::TimestampHandler::TimestampHandler |
( |
std::chrono::system_clock::time_point | point | ) |
|
|
explicitnoexcept |
◆ getCurrentTimestamp()
uint64_t sese::TimestampHandler::getCurrentTimestamp |
( |
| ) |
|
|
noexcept |
Get the current timestamp
- Returns
- Millisecond-level timestamp
References latest.
◆ tryGetCurrentTimestamp()
uint64_t sese::TimestampHandler::tryGetCurrentTimestamp |
( |
| ) |
|
|
noexcept |
Try to get the current timestamp
- Return values
-
0 | System clock rollback, and rollback time is less than or equal to 5 seconds |
UINT64_MAX | System clock rollback, and rollback time is greater than 5 seconds |
◆ latest
std::chrono::milliseconds sese::TimestampHandler::latest {} |
|
protected |
The documentation for this class was generated from the following files: