mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-21 05:45:19 +00:00
Remove some asserts in timings.c
This commit is contained in:
@@ -45,13 +45,7 @@ u64 unix_time_stamp__freq(void) {
|
||||
if (freq == 0) {
|
||||
struct timespec ts;
|
||||
clock_getres(CLOCK_PROCESS_CPUTIME_ID, &ts);
|
||||
|
||||
// that would be an absurd resolution (or lack thereof)
|
||||
GB_ASSERT(ts.tv_sec == 0);
|
||||
|
||||
freq = cast(u64) ((1.0 / ts.tv_nsec) * 1000000000.0);
|
||||
|
||||
GB_ASSERT(freq != 0);
|
||||
}
|
||||
|
||||
return freq;
|
||||
|
||||
Reference in New Issue
Block a user