ImSQL
C++ 기반 SQL 자동화 및 라이선스 관리 엔진
Loading...
Searching...
No Matches
utils::system_info::CPU Struct Reference

CPU 상태 및 사용량 정보를 관리하는 구조체 및 함수 모음. More...

#include <system_info_cpu.hpp>

Classes

struct  Stat
 CPU의 기본 상태를 나타내는 구조체. More...
 
struct  TimeStat
 CPU 시간 관련 세부 통계. More...
 
struct  Usage
 CPU 사용량을 계산하기 위한 간단한 구조체. More...
 

Static Public Member Functions

static Stat read ()
 현재 CPU 사용 상태를 읽어옵니다.
 
static float calculate (const Usage &prev, const Usage &curr)
 이전 사용량과 현재 사용량을 비교하여 CPU 사용률을 계산합니다.
 

Detailed Description

CPU 상태 및 사용량 정보를 관리하는 구조체 및 함수 모음.

Member Function Documentation

◆ calculate()

float utils::system_info::CPU::calculate ( const Usage & prev,
const Usage & curr )
static

이전 사용량과 현재 사용량을 비교하여 CPU 사용률을 계산합니다.

Parameters
prev이전 사용량
curr현재 사용량
Returns
CPU 사용률 (0.0 ~ 1.0)

◆ read()

CPU::Stat utils::system_info::CPU::read ( )
static

현재 CPU 사용 상태를 읽어옵니다.

Returns
현재 CPU 상태 (Stat)

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