in reply to Net::Ping duration question

Try setting
$p->hires(1);
before the ping call. This will cause Net::Ping to use Time::HiRes, and return a Float, instead of using normal (1 second) resolution, and returning an Integer.

Of course, this requires Time::HiRes to be installed/available.

Update: Dang - frozenwithjoy (++) has a higher Res, and beat me to the punch.

             I hope life isn't a big joke, because I don't get it.
                   -SNL

Replies are listed 'Best First'.
Re^2: Net::Ping duration question
by frozenwithjoy (Priest) on Jun 21, 2012 at 05:54 UTC
    Come on up here with me. There's plenty of glory to go around and no one I'd rather share it with more than you!

    edit: Oh noes! down-voted! I guess I better stop enjoying myself while I'm spending my time helping people out. ^___^

      Its past my bedtime now, so I'll let you bask!. Thanks for the invite, and Cheers!
      We'll play again on the morrow.

                   I hope life isn't a big joke, because I don't get it.
                         -SNL

        Sweet dreams!