Re: diff between time1 and time2

You 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 <purlgurl [at] purlgurl.net>
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."
Michael Wendel [ Fr, 29 Oktober 2004 20:05 ] [ ID #456889 ]

Re: diff between time1 and time2

"Michael Wendel" <mwendel [at] cordsel.com> wrote in message
news:9i15o09upqnqf89le6dpmdn592ibrs3fg7 [at] 4ax.com...
> You 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
>

Please do not post links to stolen material here.

Matt
Matt Garrish [ Fr, 29 Oktober 2004 22:57 ] [ ID #456890 ]

Re: diff between time1 and time2

Didn't realize it was considered stolen. Just showed up in the Google
search results, I'll pay more attention next time.

On Fri, 29 Oct 2004 16:57:47 -0400, "Matt Garrish"
<matthew.garrish [at] sympatico.ca> wrote:

>
>"Michael Wendel" <mwendel [at] cordsel.com> wrote in message
>news:9i15o09upqnqf89le6dpmdn592ibrs3fg7 [at] 4ax.com...
>> You 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
>>
>
>Please do not post links to stolen material here.
>
>Matt
>

-----------------------------------
"Integrity is doing the right thing,
even if nobody is watching."
-----------------------------------
"Normally we do not so much
look at things as overlook them."
Michael Wendel [ Mo, 01 November 2004 18:56 ] [ ID #460593 ]

Re: diff between time1 and time2

"Michael Wendel" <mwendel [at] cordsel.com> wrote in message
news:f5uco052qe8606t7umoml4baq6tvpag5q5 [at] 4ax.com...
> Didn't realize it was considered stolen. Just showed up in the Google
> search results, I'll pay more attention next time.
>

If you find O'Reilly books on the net (other than on their site, of course),
chances are good they've been pirated by someone.

Matt
Matt Garrish [ Di, 02 November 2004 01:19 ] [ ID #461018 ]
Perl » alt.perl » Re: diff between time1 and time2

Vorheriges Thema: Telnet module or stop processing
Nächstes Thema: SubStr routine