C# Class PerformanceCounterControls.PerformanceCounters

Show file Open project: Behzadkhosravifar/MakeClassSchedule Class Usage Examples

Private Properties

Property Type Description
CPU_Name string
Calculate Double
GlobalMemoryStatus void
InitializeComponent void
buildCoreObjects void
lblCore_Specification Label
lblPercent_Specification Label
prbCore_Specification ProgressBar

Public Methods

Method Description
CPU_CurrentClockSpeed ( ) : uint
CPU_MaxClockSpeed ( ) : uint
Clear ( ) : void
PerformanceCounters ( ) : System
RefreshData ( ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
CPU_Name ( ) : string
Calculate ( CounterSample oldSample, CounterSample newSample ) : Double
GlobalMemoryStatus ( MemoryStatus &stat ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

buildCoreObjects ( int NumberOfCore ) : void
lblCore_Specification ( Point location, int No ) : Label
lblPercent_Specification ( Point location ) : Label
prbCore_Specification ( Point location ) : ProgressBar

Method Details

CPU_CurrentClockSpeed() public method

public CPU_CurrentClockSpeed ( ) : uint
return uint

CPU_MaxClockSpeed() public method

public CPU_MaxClockSpeed ( ) : uint
return uint

Clear() public method

public Clear ( ) : void
return void

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

PerformanceCounters() public method

public PerformanceCounters ( ) : System
return System

RefreshData() public method

public RefreshData ( ) : void
return void