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

◆ ToMinutes()

Math::Types::Fxp SRL::Tickstamp::ToMinutes ( ) const
inlinenoexcept

Converts ticks to minutes using DVU hardware acceleration.

Returns
Time in minutes as fixed-point number (Fxp 16.16 format).

Uses SH-2 DVU for 64-bit division: (ticks << 16) / (frequency * 60). Provides the longest Fxp range of all conversion methods.

Range:
  • Maximum: 32767 minutes (~22.7 days)
  • Minimum: ~0.000000075 minutes (1 tick at PHI_128)
When to Use:
Use for long-duration timing such as play session length, in-game clocks, or cooldown timers that span multiple minutes or hours.
Example:
Tickstamp elapsed = end - start;
Fxp mins = elapsed.ToMinutes();
if (mins > 5.0) { // More than 5 minutes
// Auto-save
}
Math::Types::Fxp ToMinutes() const noexcept
Converts ticks to minutes using DVU hardware acceleration.
Definition srl_timer.hpp:557
See also
ToSeconds() for second-precision timing