C# Class BuildingCoder.JtTimer

Performance timer for profiling purposes. For a full description, please refer to http://thebuildingcoder.typepad.com/blog/2010/03/performance-profiling.html
Inheritance: IDisposable
Afficher le fichier Open project: jeremytammik/the_building_coder_samples Class Usage Examples

Méthodes publiques

Méthode Description
JtTimer ( string what_are_we_testing_here ) : System

Performance timer

Report ( string description ) : void

Write and display a report of the timing results in a text file.

Restart ( string what_are_we_testing_here ) : void

Restart the measurement from scratch.

Private Methods

Méthode Description
IDisposable ( ) : void

Automatic disposal when the the using statement block finishes: the timer is stopped and the time is registered.

Method Details

JtTimer() public méthode

Performance timer
public JtTimer ( string what_are_we_testing_here ) : System
what_are_we_testing_here string /// Key describing code to be timed
Résultat System

Report() public méthode

Write and display a report of the timing results in a text file.
public Report ( string description ) : void
description string
Résultat void

Restart() public méthode

Restart the measurement from scratch.
public Restart ( string what_are_we_testing_here ) : void
what_are_we_testing_here string
Résultat void