Results 1 to 25 of 25

Thread: Super Precision Timer

Threaded View

  1. #1

    Thread Starter
    Frenzied Member some1uk03's Avatar
    Join Date
    Jun 2006
    Location
    London, UK
    Posts
    1,675

    Question Super Precision Timer

    I've got a class setup with QueryPerformanceCounter + QueryPerformanceFrequency and it gives me a very precise timer. Everything is quite nice and fine, however, only issues is, if i do a Right Click or a Drag of a window it seems to be pausing the timer!

    I've taken a look at the SelfTimer classes from Merri and The Trick's Timer which are both similar. They both run very smooth without any bottlenecks on drag or right lick menus etc.... and both use SetTimer/KillTimer APIs, but those are not as accurate / fast as QueryPerformanceFrequency.

    So the question is, how can i get the accuracy of QueryPerformanceFrequency and the smoothness of the SetTimer approach?

    Any Ideas?

    Maybe run the class on a separate thread?
    Last edited by some1uk03; Jan 6th, 2022 at 12:36 PM.
    _____________________________________________________________________

    ----If this post has helped you. Please take time to Rate it.
    ----If you've solved your problem, then please mark it as RESOLVED from Thread Tools.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width