http://qs321.pair.com?node_id=289785

tos has asked for the wisdom of the Perl Monks concerning the following question:

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