|
CX Framework
Cross-platform C utility framework
|
#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. | |
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.
| flags_t SysCPUTimes::valid |