diff options
author | David Thompson <dthompson2@worcester.edu> | 2020-12-15 17:39:01 -0500 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2020-12-15 17:39:01 -0500 |
commit | 5b965d180a1f536affd51ffc2b51d5e90fbc362d (patch) | |
tree | a29771be30da5e6d7dd84be58bbcbffe49d4b98b /sdl2.scm | |
parent | 80dd0c8e510f57774e4ec4c2246108259bb26b4d (diff) |
Add SDL_GetPerformanceCounter and SDL_GetPerformanceFrequency bindings.
Diffstat (limited to 'sdl2.scm')
-rw-r--r-- | sdl2.scm | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -35,6 +35,8 @@ sdl-init sdl-quit sdl-ticks + sdl-performance-counter + sdl-performance-frequency <color> make-color @@ -94,6 +96,14 @@ upon all exit conditions." initialized." (ffi:sdl-get-ticks)) +(define (sdl-performance-counter) + "Return the current value of the high resolution counter." + (ffi:sdl-get-performance-counter)) + +(define (sdl-performance-frequency) + "Return the count per second of the high resolution counter." + (ffi:sdl-get-performance-frequency)) + ;; SDL_Color (define-record-type <color> (make-color r g b a) |