Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ times(3) — SunOS 0.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

time(1)

time(2)

vtimes(2)

TIMES(3)  —  System Interface Manual — Subroutines

NAME

times − get process times

SYNOPSIS

#include <sys/types.h>
#include <sys/times.h>

times(buffer)
struct tms ∗buffer;

DESCRIPTION

Times returns time-accounting information for the current process and for the terminated child processes of the current process.  All times are in 1/HZ seconds, where HZ is either 50 or 60 depending on your locality. 

This is the structure returned by times:

/∗times.h4.281/02/19∗/
 /∗
 ∗ Structure returned by times()
 ∗/
struct tms {
time_ttms_utime;/∗ user time ∗/
time_ttms_stime;/∗ system time ∗/
time_ttms_cutime;/∗ user time, children ∗/
time_ttms_cstime;/∗ system time, children ∗/
};

The children times are the sum of the children’s process times and their children’s times. 

SEE ALSO

time(1), time(2), vtimes(2)

Sun System Release 0.3  —  4 April 1983

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