C# Class YetAnotherRelogger.Helpers.Stats.CpuRamUsage

Afficher le fichier Open project: sinterlkaas/YetAnotherRelogger Class Usage Examples

Méthodes publiques

Méthode Description
CpuRamUsage ( ) : System
GetById ( int id ) : ProcUsage
GetUsageById ( int id ) : Usage

Get Process CPU Usage

Update ( ) : bool

Private Methods

Méthode Description
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

Method Details

CpuRamUsage() public méthode

public CpuRamUsage ( ) : System
Résultat System

GetById() public méthode

public GetById ( int id ) : ProcUsage
id int
Résultat ProcUsage

GetUsageById() public méthode

Get Process CPU Usage
public GetUsageById ( int id ) : Usage
id int Process Id
Résultat Usage

Update() public méthode

public Update ( ) : bool
Résultat bool