Take a look at Time::HiRes.
In reply to Re: Count the milliseconds by adrianh in thread Count the milliseconds by Massyn