in reply to time difference in milliseconds

You might want to look at the tv_interval function of Time::HiRes

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.