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

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

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

In scalar context, times returns $user.

Note that times for children are included only after they terminate.