plan9 man page for cputime

Query: cputime

OS: plan9

Section: 2

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

CPUTIME(2)							System Calls Manual							CPUTIME(2)

NAME
cputime, times - cpu time in this process and children
SYNOPSIS
#include <u.h> #include <libc.h> int times(long t[4]) double cputime(void)
DESCRIPTION
If t is non-null, times 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. Cputime returns the sum of those same times, converted to seconds. Times returns the real time, in mil- liseconds used by the process so far. These functions read /dev/cputime, opening that file when time is first called.
SOURCE
/sys/src/libc/9sys
SEE ALSO
cons(3) CPUTIME(2)
Related Man Pages
clock(3) - osf1
times(3) - osf1
times(3head) - sunos
times(3head) - opensolaris
times(3ucb) - opensolaris
Similar Topics in the Unix Linux Community
Measure thread execution (in C, unix)
calloc fails: 'Cannot allocate memory'
Timeout procedure for using to much memory or cpu
The old golden Question - Cpu load vs utilization
How to restart shell script when cpu is 0.0%?