CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
SysCPUTimes Struct Reference

#include <sysinfo.h>

Data Fields

flags_t valid
 SysCPUTimesValid flags naming the breakdown fields that were reported.
 
int64 sampled
 When the reading was taken, from clockTimer()
 
int64 busy
 Time accounted for as anything other than idle.
 
int64 total
 Time accounted for altogether: busy plus idle.
 
int64 user
 Time spent running program code, including at low priority.
 
int64 system
 Time spent inside the operating system.
 
int64 idle
 Time spent with nothing to do.
 
int64 iowait
 Time spent waiting for a disk. Linux only.
 
int64 irq
 Time spent servicing hardware. Not reported on Windows.
 
int64 steal
 Time a hypervisor gave to someone else. Linux only.
 
int32 cpus
 How many logical processors these figures cover.
 

Detailed Description

Processor time the machine has used since it started

Every time is in microseconds, added up across all processors, so a machine with eight processors accumulates eight seconds of time per second.

Definition at line 164 of file sysinfo.h.

Field Documentation

◆ valid

flags_t SysCPUTimes::valid

SysCPUTimesValid flags naming the breakdown fields that were reported.

busy and total are always filled in; only the breakdown below varies by platform.

Definition at line 168 of file sysinfo.h.


The documentation for this struct was generated from the following file: