1.10
Public Member Functions | List of all members
CPUMonitorUsage Class Reference

Monitor CPU usage of the system. More...

#include <tools.h>

Public Member Functions

void update ()
 Update the CPU usage.
 
EGT_NODISCARD double usage () const
 Get the total CPU usage as a percentage.
 

Detailed Description

Monitor CPU usage of the system.

Member Function Documentation

◆ update()

void update ( )

Update the CPU usage.

This must be called periodically to perform the calculation.

◆ usage()

EGT_NODISCARD double usage ( ) const
inline

Get the total CPU usage as a percentage.