Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: negative elapsed time? (versions?)

by BrowserUk (Patriarch)
on Aug 08, 2011 at 15:18 UTC ( [id://919251]=note: print w/replies, xml ) Need Help??


in reply to negative elapsed time?

I don't get any negative or zero results running your script under AS1007/Vista:

C:\test>junk14 Starting loop End of loop C:\test>perl -MTime::HiRes -E"say $Time::HiRes::VERSION" 1.9719

What versions are you running?


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.

Replies are listed 'Best First'.
Re^2: negative elapsed time? (versions?)
by saneel (Initiate) on Aug 08, 2011 at 15:31 UTC
    Hi, I am using: perl 5, version 12, subversion 4 (v5.12.4) built for MSWin32-x86-multi-thread This is the sample output I am getting: Value negative in count: 5940052 t3: 1312816368.122099 t4: 1312816368.121128 Negative or zero value: -0.000970840454101563 Value negative in count: 996932 t3: 1312814653.022737 t4: 1312814653.022737 Negative or zero value: 0 Value negative in count: 996929 t3: 1312814653.023484 t4: 1312814653.023484 Negative or zero value: 0 Value negative in count: 996928 t3: 1312814653.024365 t4: 1312814653.024365 Negative or zero value: 0 Value negative in count: 996926 t3: 1312814653.024980 t4: 1312814653.024980 Negative or zero value: 0 Also, I tested in windows production servers, and I am getting these negative or zero values

      Hm. I don't see any problems using 5.14 either:

      C:\perl5.14-64\bin>.\perl.exe \test\junk14.pl Starting loop End of loop

      What versions of Time::HiRes and Windows are you using?


      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 using Windows 7. My library version is 1.9721

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://919251]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-03-28 20:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found