Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ times(3C) — NEWS-os 4.1C

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

time(1)

getrusage(2)

wait3(2)

time(3C)

TIMES(3C)  —  NEWS-OS Programmer’s Manual

名称

times  −  プロセス時間を得る

形式

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

times(buffer)
struct tms ∗buffer;

解説

これらのインターフェースは、 getrusage(2) の旧式のものです。

times は、 現在のプロセスおよび実行が終了した(現在のプロセスの) 子プロセスに関する時間積算情報を返します。 時間はすべて、 1/HZ秒(HZは60)単位です。

times が返す構造体を 次に示します。

/∗
∗  Copyright(c)1982, 86 Regents of the University of California.
∗  All rights reserved. The Berkeley software License Agreement
∗  specifies the terms and conditions for redistribution.
∗       @(#)times.h   7.1(Berkeley)6/4/86
∗/
/∗
∗ times() が返す構造体
∗/
struct tms{
        time_t tms_utime;/∗ ユーザ時間 ∗/
        time_t tms_stime;/∗ システム時間 ∗/
        time_t tms_cutime;/∗ 子のユーザ時間 ∗/
        time_t tms_cstime;/∗ 子のシステム時間 ∗/
};

子の時間は、 子のプロセス時間とその子の時間の合計となります。

関連事項

time(1), getrusage(2), wait3(2), time(3C)

NEWS-OSRelease 4.1C

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