justin = { main feed , music , code , askjf , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.


Name: Ask: Human (enter yes):
[back to index] | [unreplied] | [replied] | [recent comments] | [all]

Question: Any tips on how to implement an accurate timer on Win32?
Asked by Brujo (177.16.109.x) on July 17 2011, 1:20am
Reply on July 22 2011, 3:27am:
    You can use the x86 instruction rdtsc to get a cycle timer (see WDL/timing.c in WDL).. or you can use QueryPerformanceCounter() etc. Assuming you mean accurate timestamps; if you want an accurate (and fast) recurring timer, probably should create a thread...

Comment:
    Your Name:   -- Site Owner's Name:  (for human-verification)

    Comment:    

    
  
[back to index] | [unreplied] | [replied] | [recent comments] | [all]
Copyright 2025 Justin Frankel. | RSS