Re: diff between time1 and time2
am 29.10.2004 20:05:50 von Michael WendelYou can also use the Date-Calc module
This is a good little quickstart for it:
http://iis1.cps.unizar.es/Oreilly/perl/cookbook/ch03_06.htm
On Wed, 10 Sep 2003 19:41:20 -0700, Purl Gurl
wrote:
>Bob wrote:
>
>(snipped)
>
>> Best way to know elapsed time on Windows system.
>
>> have $time1 and $time2 and need to know elapsed time between ....
>> $time1 = 10:23:15 AM;
>> $time2 = 10:23:45 AM;
>
>
>Be cautious about using Time High Resolution. Most of the
>features of the Hi Res module are not supported on Win32.
>
>Beneath my signature is an easy timing method based on
>system ticks since last boot. Resolution, for typical
>applications, is good to ten milliseconds.
>
>This example exemplifies accuracy using a five-hundred
>millisecond pseudo sleep. Results are very consistent.
>
>Conversion to seconds, minutes, even hours, requires
>nothing more than simple arithmetic.
>
>Usage includes timing code snippets, timing routines,
>timing system calls, virtually anything you want.
>
>
>Purl Gurl
-----------------------------------
"Integrity is doing the right thing,
even if nobody is watching."
-----------------------------------
"Normally we do not so much
look at things as overlook them."