Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: converting Time::HiRes

by BrowserUk (Pope)
on Sep 14, 2004 at 00:48 UTC ( #390714=note: print w/ replies, xml ) Need Help??

in reply to converting Time::HiRes

You need to re-read the docs. This line of code:

my $t0 = [gettimeofday];

Is putting two values (seconds and microseconds) into an anonymous array and assigning a reference to that array to $t0. You then pass that reference to localtime() and get strange results.

Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
"Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon

Comment on Re: converting Time::HiRes
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://390714]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (16)
As of 2015-11-30 18:21 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (778 votes), past polls