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
Show file Open project: jeremytammik/the_building_coder_samples Class Usage Examples

Public Methods

Method 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

Method 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 method

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

Report() public method

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

Restart() public method

Restart the measurement from scratch.
public Restart ( string what_are_we_testing_here ) : void
what_are_we_testing_here string
return void