|
ReXGlue SDK
|
#include <rex/chrono.h>
Static Public Member Functions | |
| static bool | IsNoScaling () |
| static u64 | GetHostTickFrequency () noexcept |
| static u64 | GetHostTickCount () noexcept |
| static u64 | QueryHostSystemTime () noexcept |
| static u64 | QueryHostUptimeMillis () |
| static f64 | GetGuestTimeScalar () |
| static void | SetGuestTimeScalar (f64 scalar) |
| static std::pair< u64, u64 > | GetGuestTickRatio () |
| static u64 | GetGuestTickFrequency () |
| static void | SetGuestTickFrequency (u64 frequency) |
| static u64 | GetGuestSystemTimeBase () |
| static void | SetGuestSystemTimeBase (u64 time_base) |
| static u64 | QueryGuestTickCount () |
| static u64 | QueryGuestSystemTime () |
| static u32 | GetGuestUptimeMillis () |
| static void | SetGuestSystemTime (u64 system_time) |
| static u32 | ScaleGuestDurationMillis (u32 guest_ms) |
| static i64 | ScaleGuestDurationFileTime (i64 guest_file_time) |
| static void | ScaleGuestDurationTimeval (i32 *tv_sec, i32 *tv_usec) |
Host clock queries and the scaled guest clock.
|
static |
Returns the FILETIME base of the guest system time. It defaults to the host system time at startup.
|
static |
|
static |
Returns the guest time scalar. 1 is normal speed.
|
static |
Returns the title uptime in milliseconds. The time is scaled and clamped to the u32 range.
|
static |
Reports whether guest time follows host time unscaled.
|
static |
|
static |
Advances and reads the guest tick count, with frequency adjustment and scaling applied.
|
staticnoexcept |
|
static |
Returns the host uptime in milliseconds.
|
static |
Scales a guest FILETIME duration by the time scalar. A positive value is an absolute time, scaled by its offset from the current guest system time. A negative value is a relative duration.
| guest_file_time | The guest time in 100ns units. |
|
static |
Scales a guest duration in milliseconds by the time scalar.
|
static |
Scales a guest timeval duration in place by the time scalar.
| tv_sec | The seconds field, read and written. |
| tv_usec | The microseconds field, read and written. |
|
static |
Sets the guest system time by moving the time base. Ignored when no_scaling is true.
| system_time | The new guest system time as a FILETIME. |
|
static |
Sets the FILETIME base the guest system time counts from.
| time_base | The new base as a FILETIME. |
|
static |
Sets the guest tick frequency and recomputes the tick ratio.
| frequency | Guest ticks per second. |
|
static |
Sets the guest time scalar. 2 runs at double speed and 0.5 at half speed. Ignored when no_scaling is true.