Skip to content

Commit

Permalink
- implemented monotonic timer HAL function for Windows (LIB8705-87)
Browse files Browse the repository at this point in the history
  • Loading branch information
mzillgith committed Dec 27, 2024
1 parent 8c7528b commit 3c493ad
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib60870-C/src/hal/time/win32/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,14 @@ Hal_setTimeInNs(nsSinceEpoch nsTime)
return SetSystemTime(&st);
}

msSinceEpoch
Hal_getMonotonicTimeInMs()
{
return (msSinceEpoch)GetTickCount64;
}

nsSinceEpoch
Hal_getMonotonicTimeInNs()
{
return (nsSinceEpoch)(GetTickCount64() * 1000000ULL);
}

0 comments on commit 3c493ad

Please sign in to comment.