diff options
| author | Drew DeVault <sir@cmpwn.com> | 2021-12-09 16:19:28 +0100 |
|---|---|---|
| committer | Drew DeVault <sir@cmpwn.com> | 2021-12-09 16:19:28 +0100 |
| commit | 10fe8ef9f8a5bc839eb9b4ebcf0ac2b3c01a9963 (patch) | |
| tree | 53417b09b98492bab2852cba0ae6fa4d941a94c6 | |
| parent | Add timer.h functions (diff) | |
| download | hare-chip8-10fe8ef9f8a5bc839eb9b4ebcf0ac2b3c01a9963.tar.gz | |
timer: correct naming convention
Diffstat (limited to '')
| -rw-r--r-- | sdl2/timer.ha | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sdl2/timer.ha b/sdl2/timer.ha index da958b6..1b315ec 100644 --- a/sdl2/timer.ha +++ b/sdl2/timer.ha @@ -4,7 +4,7 @@ // // Returns an unsigned 32-bit value representing the number of milliseconds // since the SDL library initialized. -export @symbol("SDL_GetTicks") fn getticks() u32; +export @symbol("SDL_GetTicks") fn get_ticks() u32; // Get the current value of the high resolution counter. // @@ -15,12 +15,12 @@ export @symbol("SDL_GetTicks") fn getticks() u32; // [[getperformancefrequency]]. // // Returns the current counter value. -export @symbol("SDL_GetPerformanceCounter") fn getperformancecounter() u64; +export @symbol("SDL_GetPerformanceCounter") fn get_performance_counter() u64; // Get the count per second of the high resolution counter. // // Returns a platform-specific count per second. -export @symbol("SDL_GetPerformanceFrequency") fn getperformancefrequency() u64; +export @symbol("SDL_GetPerformanceFrequency") fn get_performance_frequency() u64; // Wait a specified number of milliseconds before returning. // |
