I want to execute a unix time command using perl, and capture the output (specifically, the time it takes the command to execute).
i tried using the system command:
system("time command ");
however, when i try to capture the output, the capture output does not contain the amount of time it took to execute
when i try to do:
$var = `time command `;
there is the same problem (the ouput from the command is saved in the variable; however, the time is not)
So, how do i capture the time it takes a unix command to execute?