Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: In search of a bug in Time::HiRes on Windows.

by spurperl (Priest)
on Jun 17, 2005 at 05:59 UTC ( [id://467580]=note: print w/replies, xml ) Need Help??


in reply to In search of a bug in Time::HiRes on Windows.

This is perl, v5.8.4 built for MSWin32-x86-multi-thread
(with 3 registered patches, see perl -V for more detail)

Copyright 1987-2004, Larry Wall

Binary build 810 provided by ActiveState Corp. http://www.ActiveState.com
ActiveState is a division of Sophos.
Built Jun  1 2004 11:52:21

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'.  If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.

The results are:

1.59
1118987794.35973
1118987794.35978
1118987794.3598
1118987794.35981
1118987794.35983
1118987794.35985
1118987794.35987
1118987794.35989
1118987794.35991
1118987794.35992
  • Comment on Re: In search of a bug in Time::HiRes on Windows.

Replies are listed 'Best First'.
Re^2: In search of a bug in Time::HiRes on Windows.
by BrowserUk (Patriarch) on Jun 17, 2005 at 06:13 UTC

    That has fixed your problem?

    Could you try the loop within the debugger and see what results you get?


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
    "Science is about questioning the status quo. Questioning authority".
    The "good enough" maybe good enough for the now, and perfection maybe unobtainable, but that should not preclude us from striving for perfection, when time, circumstance or desire allow.
      It looks like the problem went away, yes. Unfortunately, I don't remember how to reproduce the original problem. If I run into it again I'll let you know.

      In the debugger I get:

        DB<2> print time  . $/ for 1 .. 20;;
      1118999589.19879
      1118999589.2088
      1118999589.2088
      1118999589.21882
      1118999589.21882
      1118999589.22883
      1118999589.23884
      1118999589.23884
      1118999589.24886
      1118999589.24886
      1118999589.25887
      1118999589.26889
      1118999589.26889
      1118999589.2789
      1118999589.2789
      1118999589.28892
      1118999589.29893
      1118999589.30894
      1118999589.30894
      1118999589.31896
      

        This is weird! I consistantly get lo res results in the debugger?

        DB<2> print time . $/ for 1 .. 20;; 1119000264.44888 1119000264.44888 1119000264.44888 1119000264.44888 1119000264.44888 1119000264.44888 1119000264.44888 1119000264.44888 1119000264.44888 1119000264.44888 1119000264.44888 1119000264.48013 1119000264.48013 1119000264.48013 1119000264.48013 1119000264.48013 1119000264.48013 1119000264.49575 1119000264.49575 1119000264.49575

        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
        "Science is about questioning the status quo. Questioning authority".
        The "good enough" maybe good enough for the now, and perfection maybe unobtainable, but that should not preclude us from striving for perfection, when time, circumstance or desire allow.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-19 17:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found