载入中...
搜索中...
未找到
Time.h 文件参考

Common time values and an injectable deterministic simulation clock. 更多...

#include "common/Export.h"
#include "common/Result.h"
#include "common/StrongUint64.h"
#include <compare>
#include <cstdint>
#include <optional>
#include <vector>

浏览源代码.

类

struct  eve::detail::SimulationTickTag
 SimulationTickTag public API. 更多...
 
struct  eve::detail::FrameIndexTag
 FrameIndexTag public API. 更多...
 
class  eve::Duration
 Signed, fixed-resolution simulation duration in nanoseconds. 更多...
 
class  eve::MonotonicTimestamp
 Timestamp from a monotonic source. 更多...
 
class  eve::WallClockTimestamp
 Wall-clock timestamp used only for metadata and diagnostics. 更多...
 
struct  eve::SimulationStep
 One deterministic fixed-step emitted by SimulationClock. 更多...
 
class  eve::ITimeSource
 Injectable source for elapsed and metadata time. 更多...
 
class  eve::SimulationClock
 Owner-thread fixed-step scheduler driven by an injected time source. 更多...
 

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::detail
 

类型定义

using eve::SimulationTick = detail::StrongUint64< detail::SimulationTickTag >
 Deterministic simulation time step; it is not wall-clock time.
 
using eve::FrameIndex = detail::StrongUint64< detail::FrameIndexTag >
 Render/presentation frame ordinal; it is not a simulation tick.
 

详细描述

Common time values and an injectable deterministic simulation clock.

Simulation code consumes SimulationTick and Duration only. Monotonic and wall-clock timestamps belong to the time-source boundary; a wall-clock timestamp is metadata and must never be used as simulation state.

在文件 Time.h 中定义.