Skip to content

Commit

Permalink
fixup! Benchmark: emulate clock_gettime(2) on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
aklomp committed Jan 8, 2024
1 parent 9f64607 commit c514a9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/benchmark.c
Expand Up @@ -27,7 +27,7 @@
# include <mach/mach_time.h>
#endif

#if defined(_WIN32) && !defined(_POSIX_CPUTIME)
#if defined(_WIN32)
# include "gettime_win.c"
#endif

Expand Down
4 changes: 1 addition & 3 deletions test/gettime_win.c
Expand Up @@ -5,12 +5,10 @@
// Number of 100 ns intervals from January 1, 1601 till January 1, 1970.
#define UNIX_EPOCH 116444736000000000ULL

#ifndef _TIMESPEC_DEFINED
struct timespec {
time_t tv_sec;
long tv_nsec;
long tv_nsec;
};
#endif

static ULARGE_INTEGER
xgetfiletime (void)
Expand Down

0 comments on commit c514a9c

Please sign in to comment.