Skip to content

Commit

Permalink
fix: use correct header
Browse files Browse the repository at this point in the history
  • Loading branch information
seemk committed Sep 29, 2023
1 parent 6a5bb8d commit 342b235
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/native_ext/util/platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ int64_t HrTime() { return uv_hrtime(); }
#endif

#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <sysinfoapi.h>
int64_t MicroSecondsSinceEpoch() {
FILETIME ft;
GetSystemTimePreciseAsFileTime(&ft);
Expand All @@ -31,7 +30,6 @@ int64_t MicroSecondsSinceEpoch() {
t -= 116444736000000000LL;
return t / 10LL;
}
#undef WIN32_LEAN_AND_MEAN
#else
#include <time.h>
int64_t MicroSecondsSinceEpoch() {
Expand Down

0 comments on commit 342b235

Please sign in to comment.