C# Класс YetAnotherRelogger.Helpers.Stats.CpuRamUsage

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CpuRamUsage ( ) : System
GetById ( int id ) : ProcUsage
GetUsageById ( int id ) : Usage

Get Process CPU Usage

Update ( ) : bool

Приватные методы

Метод Описание
GetSystemTimes ( System.Runtime.InteropServices.ComTypes &lpIdleTime, System.Runtime.InteropServices.ComTypes &lpKernelTime, System.Runtime.InteropServices.ComTypes &lpUserTime ) : bool
Init ( ) : bool
SubtractTimes ( System.Runtime.InteropServices.ComTypes a, System.Runtime.InteropServices.ComTypes b ) : System.UInt64
validDiff ( long ticks ) : bool

Описание методов

CpuRamUsage() публичный Метод

public CpuRamUsage ( ) : System
Результат System

GetById() публичный Метод

public GetById ( int id ) : ProcUsage
id int
Результат ProcUsage

GetUsageById() публичный Метод

Get Process CPU Usage
public GetUsageById ( int id ) : Usage
id int Process Id
Результат Usage

Update() публичный Метод

public Update ( ) : bool
Результат bool