SDL: Fixing systimer

From 10c14e78b650e626293aa18155efec54cdee7098 Mon Sep 17 00:00:00 2001
From: Francisco Javier Trujillo Mata <[EMAIL REDACTED]>
Date: Wed, 26 Jun 2024 23:40:02 +0200
Subject: [PATCH] Fixing systimer

---
 src/timer/ps2/SDL_systimer.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/timer/ps2/SDL_systimer.c b/src/timer/ps2/SDL_systimer.c
index 720f696d9bbaa..6d8cdd7d2fe12 100644
--- a/src/timer/ps2/SDL_systimer.c
+++ b/src/timer/ps2/SDL_systimer.c
@@ -34,6 +34,8 @@
 static uint64_t start;
 static SDL_bool ticks_started = SDL_FALSE;
 
+static Uint64 BUSCLK_MS = (kBUSCLK / 1000);
+
 void SDL_TicksInit(void)
 {
     if (ticks_started) {
@@ -58,7 +60,7 @@ Uint64 SDL_GetTicks64(void)
     }
 
     now = GetTimerSystemTime();
-    return (Uint64)((now - start) / (kBUSCLK / CLOCKS_PER_SEC));
+    return (Uint64)((now - start) / BUSCLK_MS);
 }
 
 Uint64 SDL_GetPerformanceCounter(void)