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

With Perl version v5.8.6:

1.65 1118805186.85975 1118805186.85976 1118805186.85976 1118805186.85977 1118805186.85978 1118805186.85978 1118805186.85979 1118805186.85979 1118805186.8598 1118805186.8598

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

    That's strange? The snippet I posted should only produce unique values, not duplicates.

    Did you modify it to produce these results?


    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.
      No, I ran your code as-is. Here's more:

      perl time_bug.pl > time_bug.txt 1.65 1118806411.5004 1118806411.50041 1118806411.50041 1118806411.50042 1118806411.50043 1118806411.50043 1118806411.50044 1118806411.50044 1118806411.50045 1118806411.50045
      Update:

      When I ran (output to the screen)

      perl time_bug.pl
      i.e. without "> time_bug.txt", there're no duplicates.