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

◆ DeltaMinutes()

const Math::Types::Fxp & SRL::Timer::DeltaMinutes ( )
inlinestaticnoexcept

Frame delta time in minutes (fixed-point 16.16).

Pre-calculated each frame by Core::Synchronize(). Represents the time elapsed since the previous frame with minute precision.

Precision and Range:
  • Hardware precision: ~4.47μs per tick (PHI_128)
  • Fxp precision: ~0.9ms per unit (16.16 format)
  • Fxp limit: 32767 minutes (~22.7 days)
Usage:
Use for long-term game timers, auto-save intervals, session tracking, and any timing that spans minutes to days.
// Auto-save every 5 minutes of gameplay
static Fxp gameTime = 0;
gameTime = gameTime + Timer::DeltaMinutes();
if (gameTime > 5.0) {
SaveGame();
gameTime = 0;
}
static const Math::Types::Fxp & DeltaMinutes() noexcept
Frame delta time in minutes (fixed-point 16.16).
Definition srl_timer.hpp:1041
Note
DeltaMinutes provides the longest range among delta variables while maintaining fixed-point precision. Ideal for persistent game state.
See also
DeltaSeconds() for frame-level precision, DeltaMilliseconds() for short-term timing