|
KallistiOS git master
Independent SDK for the Sega Dreamcast
|
Timer functionality. More...
Go to the source code of this file.
Typedefs | |
| typedef struct timespec | timespec_t |
Functions | |
| static timespec_t | timer_gettime (void) |
| Get the current uptime of the system. | |
| static uint64_t | timer_ms_gettime64 (void) |
| Get the current uptime of the system (in milliseconds). | |
| static uint64_t | timer_us_gettime64 (void) |
| Get the current uptime of the system (in microseconds). | |
| static uint64_t | timer_ns_gettime64 (void) |
| Get the current uptime of the system (in nanoseconds). | |
| static void | timer_ms_gettime (uint32_t *secs, uint32_t *msecs) |
| Get the current uptime of the system (in secs and millisecs). | |
| static void | timer_us_gettime (uint32_t *secs, uint32_t *usecs) |
| Get the current uptime of the system (in secs and microsecs). | |
| static void | timer_ns_gettime (uint32_t *secs, uint32_t *nsecs) |
| Get the current uptime of the system (in secs and nanosecs). | |
| static void | timer_spin_delay_us (unsigned short us) |
| Spin-loop delay function with microsecond granularity. | |
| static void | timer_spin_delay_ns (unsigned short ns) |
| Spin-loop delay function with nanosecond granularity. | |
| Do not use | timer_spin_sleep () |
| Spin-loop delay function with millisecond granularity. | |
| Do not use use | thd_sleep () instead") static inline void timer_spin_sleep(unsigned int ms) |
Timer functionality.
This file contains functions for reading the internal timer provided by the architecture.
| typedef struct timespec timespec_t |
| Do not use use thd_sleep | ( | ) |
References timer_ms_gettime64().