Open avengerx opened 1 year ago
It looks like relying on rdtsc()
would be even faster.
asm
with __asm
)As it amounts to CPU clock ticks since last reset, it may be difficult to approximate to actual milliseconds or any other wallclock variation.
The
GetTickCount()
function has the risk of overlapping every 49 days. Alternatively there'sGetTickCount64()
, yetGetSystemTimeAsFileTime()
should be much lighter to the driver, if feasible to replace the current time reference.It basically is used to determine time differences for the duration of effects run.