mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-14 17:06:22 +03:00
Add timer support for Windows.
This commit is contained in:
parent
92d72eeef0
commit
8693a9ea05
2 changed files with 24 additions and 10 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue