Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rzblue committed Aug 2, 2024
1 parent 121982e commit 4cf2a24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hal/src/main/native/sim/HAL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ HAL_Bool HAL_Initialize(int32_t timeout, int32_t mode) {

// Set Timer Precision to 0.5ms on Windows
#ifdef _WIN32
// Use timeGetDevCaps as well to prevent Java from interfering
TIMECAPS tc;
if (timeGetDevCaps(&tc, sizeof(tc)) == TIMERR_NOERROR) {
UINT target = (std::min)(static_cast<UINT>(1), tc.wPeriodMin);
Expand Down

0 comments on commit 4cf2a24

Please sign in to comment.