times - Perldoc Browser

You are viewing the version of this documentation from Perl blead. This is the main development branch of Perl. (git commit bea778667b99f669b66b2d36656eda5e3f763e65)
#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.

AltStyle によって変換されたページ (->オリジナル) /