Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ times(3C) — AOS 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

time(1)

getrusage(2)

wait3(2)

time(3)

TIMES(3C)  —  Unix Programmer’s Manual

NAME

times − get process times

SYNOPSIS

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

times(buffer)
struct tms ∗buffer;

DESCRIPTION

This interface is obsoleted by getrusage(2). 

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 60. 

This is the structure returned by times:

/∗
 ∗ 5799-WZQ (C) COPYRIGHT = NONE
 ∗ LICENSED MATERIALS - PROPERTY OF IBM
 ∗/
/∗ $Header:times.h 12.0$ ∗/
/∗ $ACIS:times.h 12.0$ ∗/
/∗ $Source: /ibm/acis/usr/sys/h/RCS/times.h,v $ ∗/
 #if !defined(lint) && !defined(LOCORE) && defined(RCS_HDRS)
static char ∗rcsidtimes = "$Header:times.h 12.0$";
#endif
 /∗
 ∗ Copyright (c) 1982, 1986 Regents of the University of California.
 ∗ All rights reserved.  The Berkeley software License Agreement
 ∗ specifies the terms and conditions for redistribution.
 ∗
 ∗@(#)times.h7.1 (Berkeley) 6/4/86
 ∗/
 /∗
 ∗ 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), getrusage(2), wait3(2), time(3)

4th Berkeley Distribution  —  May 9, 1985

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