Why not use the program time?
In reply to Re: timing a command execution with perl by Anonymous Monk in thread timing a command execution with perl by savio