in reply to Re^2: timing a command execution with perl
in thread timing a command execution with perl

time typically outputs its values to STDERR (unless your version supports the -o option). To capture STDERR in a Perl program, something like Capture::Tiny or IPC::Run3 makes that easy. (Or you can use shell redirects.)