Current frame timestamp (const reference).
Returns a const reference to the current frame's timestamp captured by Update(). This avoids redundant hardware register reads when you need the current time multiple times within a frame. Use this instead of Capture() when you don't need a fresh timestamp.
- When to Use:
- Displaying current time in UI/debug output
- Calculating time remaining in a frame
- Any in-frame timing that doesn't require a fresh hardware read
- When to Use Capture() Instead:
- Measuring precise elapsed time between two operations
- Starting a new timing operation
- When you need the absolute latest hardware timestamp
- Example:
auto elapsed = now - startTime;
High-precision 48-bit timestamp with DVU hardware acceleration.
Definition srl_timer.hpp:58
static const Tickstamp & CurrentTickstamp() noexcept
Current frame timestamp (const reference).
Definition srl_timer.hpp:956
- See also
- Capture() for fresh hardware timestamp