WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Programmierung (http://www.wcm.at/forum/forumdisplay.php?f=17)
-   -   PERL - Alternative für localtime (millisekunden) (http://www.wcm.at/forum/showthread.php?t=64843)

psykoman 31.07.2002 10:00

PERL - Alternative für localtime (millisekunden)
 
Weiß wer eine alternative zu localtime, mit der man möglicherweiße Millisekunden auslesen kann???

THX Geri

SNo0py 31.07.2002 10:29

www.cpan.org

_m3 31.07.2002 16:36

perldoc -f time
time Returns the number of non-leap seconds since whatever time the
system considers to be the epoch (that's 00:00:00, January 1,
1904 for MacOS, and 00:00:00 UTC, January 1, 1970 for most other
systems). Suitable for feeding to "gmtime" and "localtime".

For measuring time in better granularity than one second, you
may use either the Time::HiRes module from CPAN, or if you have
gettimeofday(2), you may be able to use the "syscall" interface
of Perl, see the perlfaq8 manpage for details.


Alle Zeitangaben in WEZ +2. Es ist jetzt 23:01 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag