C# Class YetAnotherRelogger.Helpers.Stats.CpuRamUsage

Exibir arquivo Open project: sinterlkaas/YetAnotherRelogger Class Usage Examples

Public Methods

Method Description
CpuRamUsage ( ) : System
GetById ( int id ) : ProcUsage
GetUsageById ( int id ) : Usage

Get Process CPU Usage

Update ( ) : bool

Private Methods

Method 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 method

public CpuRamUsage ( ) : System
return System

GetById() public method

public GetById ( int id ) : ProcUsage
id int
return ProcUsage

GetUsageById() public method

Get Process CPU Usage
public GetUsageById ( int id ) : Usage
id int Process Id
return Usage

Update() public method

public Update ( ) : bool
return bool