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.
Afficher le fichier Open project: MichaelAquilina/Some-2D-RPG Class Usage Examples

Méthodes publiques

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

Méthode Description
CompareWatches ( string key1, string key2 ) : int

Method Details

Clear() public méthode

public Clear ( ) : void
Résultat void

DiagnosticInfo() public méthode

public DiagnosticInfo ( string description ) : System
description string
Résultat System

GetTiming() public méthode

public GetTiming ( string name ) : System.TimeSpan
name string
Résultat System.TimeSpan

RemoveTiming() public méthode

public RemoveTiming ( string name ) : bool
name string
Résultat bool

Reset() public méthode

public Reset ( string name ) : bool
name string
Résultat bool

ResetAll() public méthode

public ResetAll ( ) : void
Résultat void

RestartTiming() public méthode

public RestartTiming ( string name ) : void
name string
Résultat void

ShowAll() public méthode

public ShowAll ( bool sort = true ) : string
sort bool
Résultat string

ShowTop() public méthode

public ShowTop ( int top, bool sort = true ) : string
top int
sort bool
Résultat string

StartTiming() public méthode

public StartTiming ( string name ) : void
name string
Résultat void

StopTiming() public méthode

public StopTiming ( string name ) : void
name string
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string