cputime, times, cycles – cpu time in this process and children
int times(long t)
void cycles(uvlong *cyclep)
fills it in
with the number of milliseconds spent in user code, system calls,
child processes in user code, and child processes in system calls.
returns the sum of those same times, converted to seconds.
returns the elapsed real time, in milliseconds, that the process has been running.
These functions read
opening that file when they are first called.
reads the processor’s timestamp counter of cycles since reset,
if any, and stores it via
Currently supported architectures are
on all others,
will store zero.
processors starting with the Pentium have timestamp counters;
on earlier processors may execute an illegal instruction.