C# Class GameEngine.Info.DiagnosticInfo

Class that allows for diagnostics to be recorded and organised through named values. Provides numerous methods that allow for each diagnostic timer to be started, stopped and reset in order to provide complete control.
显示文件 Open project: MichaelAquilina/Some-2D-RPG Class Usage Examples

Public Methods

Method Description
Clear ( ) : void
DiagnosticInfo ( string description ) : System
GetTiming ( string name ) : System.TimeSpan
RemoveTiming ( string name ) : bool
Reset ( string name ) : bool
ResetAll ( ) : void
RestartTiming ( string name ) : void
ShowAll ( bool sort = true ) : string
ShowTop ( int top, bool sort = true ) : string
StartTiming ( string name ) : void
StopTiming ( string name ) : void
ToString ( ) : string

Private Methods

Method Description
CompareWatches ( string key1, string key2 ) : int

Method Details

Clear() public method

public Clear ( ) : void
return void

DiagnosticInfo() public method

public DiagnosticInfo ( string description ) : System
description string
return System

GetTiming() public method

public GetTiming ( string name ) : System.TimeSpan
name string
return System.TimeSpan

RemoveTiming() public method

public RemoveTiming ( string name ) : bool
name string
return bool

Reset() public method

public Reset ( string name ) : bool
name string
return bool

ResetAll() public method

public ResetAll ( ) : void
return void

RestartTiming() public method

public RestartTiming ( string name ) : void
name string
return void

ShowAll() public method

public ShowAll ( bool sort = true ) : string
sort bool
return string

ShowTop() public method

public ShowTop ( int top, bool sort = true ) : string
top int
sort bool
return string

StartTiming() public method

public StartTiming ( string name ) : void
name string
return void

StopTiming() public method

public StopTiming ( string name ) : void
name string
return void

ToString() public method

public ToString ( ) : string
return string