Add timer support for Windows.

This commit is contained in:
Jason Evans
2015-07-13 14:35:15 -07:00
parent 92d72eeef0
commit 8693a9ea05
2 changed files with 24 additions and 10 deletions

View File

@@ -7,9 +7,12 @@
&& _POSIX_MONOTONIC_CLOCK >= 0
typedef struct {
#if JEMALLOC_CLOCK_GETTIME
struct timespec tv0;
struct timespec tv1;
#ifdef _WIN32
FILETIME ft0;
FILETIME ft1;
#elif JEMALLOC_CLOCK_GETTIME
struct timespec ts0;
struct timespec ts1;
int clock_id;
#else
struct timeval tv0;