C# Class GSF.StepTimer

显示文件 Open project: GridProtectionAlliance/openHistorian

Public Methods

Method Description
GetAverage ( string Name ) : double
GetNanoSeconds ( string Name, int loopCount ) : double
GetResults ( ) : string
GetSlowest ( string Name ) : double
Reset ( ) : void
Start ( string name, bool runGC = false ) : ITimer
Time ( int internalLoopCount, System.Action del ) : string
Time ( int internalLoopCount, Action del ) : string

Private Methods

Method Description
StepTimer ( ) : System
TimeLoop ( Stopwatch sw, System.Action del, int loopCount ) : double
TimeLoop ( Stopwatch sw, Action del, int loopCount ) : double

Method Details

GetAverage() public static method

public static GetAverage ( string Name ) : double
Name string
return double

GetNanoSeconds() public static method

public static GetNanoSeconds ( string Name, int loopCount ) : double
Name string
loopCount int
return double

GetResults() public static method

public static GetResults ( ) : string
return string

GetSlowest() public static method

public static GetSlowest ( string Name ) : double
Name string
return double

Reset() public static method

public static Reset ( ) : void
return void

Start() public static method

public static Start ( string name, bool runGC = false ) : ITimer
name string
runGC bool
return ITimer

Time() public static method

public static Time ( int internalLoopCount, System.Action del ) : string
internalLoopCount int
del System.Action
return string

Time() public static method

public static Time ( int internalLoopCount, Action del ) : string
internalLoopCount int
del Action
return string