Enigma  3.2.0
A Simple, Reliable and Efficient Encryption Tool
CPUInfo Class Reference

#include <CPUInfo.hpp>

Public Member Functions

 CPUInfo () noexcept
 
 ~CPUInfo () noexcept=default
 
 ENIGMA_NON_COPYABLE (CPUInfo)
 
 ENIGMA_NON_MOVEABLE (CPUInfo)
 
float GetCPUUsage () noexcept
 
float GetProcessCPUUsage () noexcept
 

Detailed Description

CPUInfo class will gather informations about the CPU at runtime

Definition at line 30 of file CPUInfo.hpp.

Constructor & Destructor Documentation

◆ CPUInfo()

CPUInfo::CPUInfo ( )
noexcept

◆ ~CPUInfo()

CPUInfo::~CPUInfo ( )
defaultnoexcept

Member Function Documentation

◆ ENIGMA_NON_COPYABLE()

CPUInfo::ENIGMA_NON_COPYABLE ( CPUInfo  )

◆ ENIGMA_NON_MOVEABLE()

CPUInfo::ENIGMA_NON_MOVEABLE ( CPUInfo  )

◆ GetCPUUsage()

float CPUInfo::GetCPUUsage ( )
noexcept

Returns cpu usage (in percentage [0% -> 100%])

◆ GetProcessCPUUsage()

float CPUInfo::GetProcessCPUUsage ( )
noexcept

Returns cpu usage by current process (in percentage [0% -> 100%])


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