Time::HiRes may be what you are looking for.
In reply to Re: timing response from database by GrandFather in thread timing response from database by perlknight