REVIEWED: GetTime(), make it consistent between platforms, consider window initialization base time

This commit is contained in:
Ray
2026-03-15 20:39:57 +01:00
parent 29280971be
commit 1d9e24eb58
7 changed files with 19 additions and 17 deletions

View File

@ -341,7 +341,6 @@ void SwapScreenBuffer(void)
double GetTime(void)
{
double time = 0.0;
struct timespec ts = { 0 };
clock_gettime(CLOCK_MONOTONIC, &ts);
unsigned long long int nanoSeconds = (unsigned long long int)ts.tv_sec*1000000000LLU + (unsigned long long int)ts.tv_nsec;