Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ (2) — Plan9 1st Edition

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cons(3)

CPUTIME(2)

NAME

cputime, times − cpu time in this process and children

SYNOPSIS

inttimes(long t[4])

doublecputime(void)

DESCRIPTION

­Times fills in the array ­t 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 milliseconds used by the process so far. 

These functions read /dev/cputime, opening that file when ­time is first called. 

SEE ALSO

cons(3)

Plan 9  —  January 03, 1993

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026