POV-Ray : Newsgroups : povray.off-topic : BPM : Re: New BPM Server Time
4 Sep 2024 11:15:18 EDT (-0400)
  Re: New BPM  
From: Invisible
Date: 9 Jun 2010 09:23:00
Message: <4c0f95b4$1@news.povray.org>
scott wrote:
>> and another thread that waits to receive a signal, and then does all 
>> the other stuff. But noooo, the timing accuracy has increased, but 
>> it's still ticking too slowly.
> 
> If you can call API functions, call QueryPerformanceCounter from 
> Kernel32.dll.  It is pretty much the ultimate in terms of useful timing 
> accuracy and resolution under windows.  It only takes one parameter (a 
> pointer to a 64-bit signed integer) so should be easy to set up if you 
> don't have the header.

http://msdn.microsoft.com/en-us/library/ms644904%28VS.85%29.aspx

"Retrieves the current value of the high-resolution performance counter."

 From what little documentation there is, it seems this allows me to 
measure wall-time, really accurately. Which isn't the problem - the 
problem is scheduling a thread to run when I actually want it to run.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.