Look at Time::HiRes module for milliseconds.
In reply to Re: Time calculations by Generoso in thread Time calculations by Dirk80