Remove some asserts in timings.c

This commit is contained in:
Ginger Bill
2017-05-29 19:41:13 +01:00
parent 60d7c833c0
commit 78494e84d5

View File

@@ -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;