The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
times.h File Reference

process CPU times. More...

#include <sys/types.h>

Go to the source code of this file.

Data Structures

struct  tms

Macros

#define CLK_TCK   100

Functions

clock_t times (struct tms *buf)
 the CPU times of the process and its reaped children.

Detailed Description

process CPU times.

the four times are in clock ticks: sysconf-free ginnOS has 100 per second (CLK_TCK). struct tms is ABI (kernel/time/clock.c).

Macro Definition Documentation

◆ CLK_TCK

#define CLK_TCK   100

Function Documentation

◆ times()

clock_t times ( struct tms * buf)

the CPU times of the process and its reaped children.

Returns
the ticks since boot.