|
KallistiOS git master
Independent SDK for the Sega Dreamcast
|
Maintaining time since system boot. More...
Functions | |
| timer_val_t | __dreamcast_get_ticks (void) |
| Get the current uptime of the system (in seconds and ticks). | |
| static struct timespec | arch_timer_gettime (void) |
| Get the current uptime of the system (in seconds and nanoseconds). | |
Maintaining time since system boot.
This API provides methods for querying the current system boot time or uptime since KOS started at various resolutions. You can use this timing for ticks, delta time, or frame deltas for games, profilers, or media decoding.
| timer_val_t __dreamcast_get_ticks | ( | void | ) |
Get the current uptime of the system (in seconds and ticks).
This function retrieves the number of seconds and ticks since KOS was started.
Referenced by arch_timer_gettime().
|
inlinestatic |
Get the current uptime of the system (in seconds and nanoseconds).
This function retrieves the time since KOS was started, in a standard timespec format.
References __dreamcast_get_ticks().
Referenced by timer_gettime().