From 13d9e4df0f4555079d16313a54c6035e22d575a6 Mon Sep 17 00:00:00 2001 From: nasr Date: Thu, 16 Apr 2026 22:00:14 +0200 Subject: feature(base): attempt at generating a random number --- source/base/base_platform.h | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'source/base/base_platform.h') diff --git a/source/base/base_platform.h b/source/base/base_platform.h index 91cd55d..b34a7d0 100644 --- a/source/base/base_platform.h +++ b/source/base/base_platform.h @@ -2,17 +2,5 @@ #define BASE_PLATFORM_H #ifdef BASE_PLATFORM_IMPLEMENTATION -internal inline void -sleep_ms(long ms) -{ - struct timespec ts; - ts.tv_sec = ms / 1000; - ts.tv_nsec = (ms % 1000) * 1000000L; - - while (nanosleep(&ts, &ts)) - { - NULL; - } -} #endif /* BASE_PLATFORM_IMPLEMENTATION */ #endif /* BASE_PLATFORM_H */ -- cgit v1.3