The Trouble with MonoTimeImpl (including at least one bug)
Gregor Mückl
gregormueckl at gmx.de
Thu Apr 4 05:16:51 UTC 2024
On Tuesday, 2 April 2024 at 18:35:24 UTC, Forest wrote:
> Does Win32 have an API to get the granularity (units-per-step
> or steps-per-second) of QueryPerformanceCounter()?
>
I think you are looking for `QueryPerformanceFrequency()`.
There is also this document detailing how Windows implements this
timer (including some usage guidance) here:
https://learn.microsoft.com/en-us/windows/win32/sysinfo/acquiring-high-resolution-time-stamps
More information about the Digitalmars-d
mailing list