in reply to Count the milliseconds

Take a look at Time::HiRes.