You are viewing the version of this documentation from Perl 5.28.2. View the latest version
times

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

my ($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.