http://qs321.pair.com?node_id=601009

perlknight has asked for the wisdom of the Perl Monks concerning the following question:

Fellow monks, I have a script which monitor if the database is available or not. It does this by logging in and query the the dual table for sysdate. It is currently working, but I want to extract how much time has elapse since I started the the call to the database until I get the result back. I was thinking of getting the timestamp in epoch before making the call to the database and getting the timestamp again after the result is returned. Take the different and covert it back from epoc to regular time. Does anyone have any idea? Thanks.