Blob
1 .TH CPUTIME 32 .SH NAME3 cputime, times \- cpu time in this process and children4 .SH SYNOPSIS5 .B #include <u.h>6 .br7 .B #include <libc.h>8 .PP9 .ta \w'\fLdouble 'u10 .B11 int times(long t[4])12 .PP13 .B14 double cputime(void)15 .SH DESCRIPTION16 If17 .I t18 is non-null,19 .I times20 fills it in21 with the number of milliseconds spent in user code, system calls,22 child processes in user code, and child processes in system calls.23 .I Cputime24 returns the sum of those same times, converted to seconds.25 .I Times26 returns the elapsed real time, in milliseconds, that the process has been running.27 .SH SOURCE28 .B \*9/src/lib9/time.c