Renamed 'time_nsec' to 'nanoSeconds'

This commit is contained in:
jtainer 2022-11-28 16:48:38 -05:00 committed by GitHub
parent 4605fdac67
commit 3af7d96f57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2763,9 +2763,9 @@ double GetTime(void)
#if defined(PLATFORM_ANDROID) || defined(PLATFORM_RPI) || defined(PLATFORM_DRM)
struct timespec ts = { 0 };
clock_gettime(CLOCK_MONOTONIC, &ts);
unsigned long long int time_nsec = (unsigned long long int)ts.tv_sec*1000000000LLU + (unsigned long long int)ts.tv_nsec;
unsigned long long int nanoSeconds = (unsigned long long int)ts.tv_sec*1000000000LLU + (unsigned long long int)ts.tv_nsec;
time = (double)(time_nsec - CORE.Time.base)*1e-9; // Elapsed time since InitTimer()
time = (double)(nanoSeconds - CORE.Time.base)*1e-9; // Elapsed time since InitTimer()
#endif
return time;
}