times

times

Returns a four-element list giving the user and system times in seconds for this process and any exited children of this process.

($user,$system,$cuser,$csystem) = times;

In scalar context, times returns $user .

Children's times are only included for terminated children.

Portability issues: times in perlport.

© 1993–2016 Larry Wall and others
Licensed under the GNU General Public License version 1 or later, or the Artistic License.
The Perl logo is a trademark of the Perl Foundation.
https://perldoc.perl.org/5.20.2/functions/times.html