petdance/scratch — Issue #223: Port Perl 5 built-in times() to PIR
Author: petdance
Created: 2011-11-14 05:55:18+00:00
State: open
Labels: bug, Pri-normal, profiling, Sev-medium

It would be nice to be able to have something like Perl 5's times() builtin in PIR for calculating user time:
{{{
times 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.

}}}

Originally http://trac.parrot.org/parrot/ticket/1379