CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 23

Threaded View

  1. #1
    Join Date
    Apr 2012
    Posts
    25

    QueryPerformanceFreqency and QueryPerformanceCounter

    hello , i try make a customizable delay out of QueryPerformanceFreqency and QueryPerformanceCounter i try is as i googled for 6+ hours and couldnot find anything to work with but i am not sure how to get it working.

    Problem for me is that i have no idea how to use QueryPerformanceCounter so that value would be updating constantly not only 1 value and finished.
    What sould i use in code to make values update itself very fast automatically?

    for example id like QueryPerformanceCounter to update its value that is compared(<=) to calculation with fixed values. QueryPerformanceFreqency+QueryPerformanceCounter*2 to get a 2sec delay as soon as value is equal or larger than other and then
    use if true to do delayed task.

    How to make QueryPerformanceCounter update itself in comaprison to calculation that would be with fixed values?
    Last edited by 1248; April 22nd, 2012 at 04:16 AM.

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

Featured