Skip to content

ludus::foundation::time::Timestamp

Ludus Wiki · API overview · Browse API

Struct

Reading of the process monotonic CPU clock; not UTC, a GPU counter or a game tick.

Declared in modules/foundation/time/include/ludus/foundation/time/time.hpp

#include <ludus/foundation/time/time.hpp>
struct ludus::foundation::time::Timestamp

Fields

Nanoseconds

uint64 ludus::foundation::time::Timestamp::Nanoseconds = 0
Nanoseconds since the monotonic clock's unspecified epoch.

Related types: uint64

Declared in modules/foundation/time/include/ludus/foundation/time/time.hpp

Methods

operator==

bool ludus::foundation::time::Timestamp::operator==(const Timestamp &) const noexcept=default
Compare exact readings; meaningful only within the same clock domain.

Related types: Timestamp

Declared in modules/foundation/time/include/ludus/foundation/time/time.hpp