SaturnRingLibrary 0.9.2
SGL wrapper
Loading...
Searching...
No Matches

◆ FromTicks()

constexpr Tickstamp SRL::Tickstamp::FromTicks ( uint64_t ticks)
inlinestaticconstexpr

Create Tickstamp from raw tick count at compile time.

Parameters
ticksTotal tick count as 48-bit value
Returns
Tickstamp initialized with the specified tick count (frequency-independent)
Example:
constexpr auto ts = Tickstamp::FromTicks(1000000); // 1M ticks
static constexpr Tickstamp FromTicks(uint64_t ticks)
Create Tickstamp from raw tick count at compile time.
Definition srl_timer.hpp:275