载入中...
搜索中...
未找到
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.

在文件 Time.h 第 138 行定义.

构造及析构函数说明

◆ WallClockTimestamp() [1/2]

constexpr eve::WallClockTimestamp::WallClockTimestamp ( )
constexprdefaultnoexcept

Construct the Unix epoch timestamp.

◆ WallClockTimestamp() [2/2]

constexpr eve::WallClockTimestamp::WallClockTimestamp ( std::int64_t  unixNanoseconds)
inlineexplicitconstexprnoexcept

Construct a timestamp from Unix-epoch nanoseconds.

在文件 Time.h 第 144 行定义.

成员函数说明

◆ unixNanoseconds()

constexpr std::int64_t eve::WallClockTimestamp::unixNanoseconds ( ) const
inlineconstexprnoexcept

Return Unix-epoch nanoseconds for metadata serialization.

在文件 Time.h 第 147 行定义.

友元及相关函数文档

◆ operator<=>

constexpr auto operator<=> ( WallClockTimestamp  ,
WallClockTimestamp   
)
friend

Operator <=>.

◆ operator==

constexpr bool operator== ( WallClockTimestamp  ,
WallClockTimestamp   
)
friend

该类的文档由以下文件生成: