Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re^2: converting Time::HiRes

by poulhs (Beadle)
on Oct 04, 2012 at 14:30 UTC ( #997240=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    $err = ( $ms < 100000 ? 'wrong' : '' );
    printf "Seconds since epoch (float):  %.6f\n", $sec;
    # $sec is a float, print it like that...
    printf "Seconds since epoch (list):   %d.%d  $err\n", $s, $ms;
    printf "Seconds since epoch (float):  %.6f  $err\n", $float_t;
  2. or download this
    Seconds since epocg (float):  1349360875.006262
    Seconds since epoch (list):   1349360875.6267  wrong
    Seconds since epoch (float):  1349360875.626700  wrong

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://997240]
[ambrus]: Corion: re stops the timer, sure, but stopping won't erase events already queued, right?
[ambrus]: really I don't know how it works
[marto]: good morning all, TCIF

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2016-12-09 10:07 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (150 votes). Check out past polls.