载入中...
搜索中...
未找到
eve::WallClockTimestamp类 参考
Wall-clock timestamp used only for metadata and diagnostics. 更多...
#include <Time.h>
Public 成员函数 | |
| constexpr | WallClockTimestamp () noexcept=default |
| Construct the Unix epoch timestamp. | |
| constexpr | WallClockTimestamp (std::int64_t unixNanoseconds) noexcept |
| Construct a timestamp from Unix-epoch nanoseconds. | |
| constexpr std::int64_t | unixNanoseconds () const noexcept |
| Return Unix-epoch nanoseconds for metadata serialization. | |
友元 | |
| constexpr bool | operator== (WallClockTimestamp, WallClockTimestamp) noexcept=default |
| constexpr auto | operator<=> (WallClockTimestamp, WallClockTimestamp) noexcept=default |
| Operator <=>. | |
详细描述
Wall-clock timestamp used only for metadata and diagnostics.
The value is nanoseconds since the Unix epoch. It must not appear in deterministic simulation state, replay keys, or simulation hashes.
构造及析构函数说明
◆ WallClockTimestamp() [1/2]
|
constexprdefaultnoexcept |
Construct the Unix epoch timestamp.
◆ WallClockTimestamp() [2/2]
|
inlineexplicitconstexprnoexcept |
成员函数说明
◆ unixNanoseconds()
|
inlineconstexprnoexcept |
友元及相关函数文档
◆ operator<=>
|
friend |
Operator <=>.
◆ operator==
|
friend |
该类的文档由以下文件生成:
- src/engine/common/Time.h