时间戳处理器
更多...
#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 |
◆ tryGetCurrentTimestamp()
uint64_t sese::TimestampHandler::tryGetCurrentTimestamp |
( |
| ) |
|
|
noexcept |
尝试获取当前时间戳
- 返回值
-
0 | 系统时钟回拨,且回拨时间小于等于 5 秒 |
UINT64_MAX | 系统时钟回拨,且回拨时间大于 5 秒 |
◆ latest
std::chrono::milliseconds sese::TimestampHandler::latest {} |
|
protected |
该类的文档由以下文件生成: