monotonic.h no longer depends on time.h

This commit is contained in:
Kovid Goyal 2019-12-19 16:48:35 +05:30
parent 2baa34beb8
commit 530cf2eb14
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -9,7 +9,6 @@
#include <stdint.h>
#include <time.h>
#define MONOTONIC_T_MAX INT64_MAX
#define MONOTONIC_T_MIN INT64_MIN
@ -65,6 +64,7 @@ init_monotonic(void) {
}
#ifdef MONOTONIC_IMPLEMENTATION
#include <time.h>
monotonic_t monotonic_start_time = 0;
static inline monotonic_t