Hi Monks,

on my linux-system i get the desired highresoluted time-values which i want to use to generate reliable different filenames.

tos@tux ~/d/tsp/lab/dvlp/tos/too # uname -a && perl -v Linux tux 2.4.21-xfs #1 SMP Fre Jul 25 00:06:47 CEST 2003 i686 GNU/Lin +ux perl, v5.8.0 built for i386-linux-thread-multi # perl -we 'use Time::HiRes ("time");for ($i=1;$i<=10;$i++) {print tim +e,"\n"}' 1063031285.55356 1063031285.55394 1063031285.55404 1063031285.55414 1063031285.55423 1063031285.55432 1063031285.5545 1063031285.55462 1063031285.55472 1063031285.55481
Not so on the win2000/cygwin-system.
tos@SYS-10102 ~ # uname -a && perl -v CYGWIN_NT-5.1 SYS-10102 1.3.22(0.78/3/2) 2003-03-18 09:20 i686 unknown + unknown Cygwin This is perl, v5.8.0 built for cygwin-multi-64int # perl -we 'use Time::HiRes ("time");for ($i=1;$i<=10;$i++) {print tim +e,"\n"}' 1063032731.06805 1063032731.06805 1063032731.06805 1063032731.06805 1063032731.06805 1063032731.06805 1063032731.06805 1063032731.06805 1063032731.06905 1063032731.06905
It appears that here the resolution is only 1/1000 second.

Any explanations for this behavior

greetings, tos


In reply to Time::HiRes not that high on windows by tos

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.