in reply to Unexpected Timing spikes using Time::HiRes

Try running your program using

start /realtime yourscript.pl

And see if that makes things any better.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"I'd rather go naked than blow up my ass"

Replies are listed 'Best First'.
Re^2: Unexpected Timing spikes using Time::HiRes
by desemondo (Hermit) on Jan 20, 2010 at 03:57 UTC
    indeed, that does seem to make a difference, only 11 out of 19,000 samples were unexpected using realtime priority on the perl.exe process running the script.

    Interestingly however, the smallest 'error' was still 15.625ms... it didn't shrink it, only reduced the occurrance of it.
    anyhow, thanks for the pointer - looks like i might have to just live with it. Cheers

      My guess is that you are running this on an XP or 200x system?


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.
        Mixture of XP, 2000 and 2003. Is this another result/side-effect of windows' "evolved" multitasking model?...