in reply to performance tool

The Time::HiRes module can also be useful for this type of thing. It gives you the current time in milliseconds. I've used it before to write log files so I can tell where my programs are spending most of their time.