C# Class RoomEditorApp.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
Mostrar archivo Open project: jeremytammik/RoomEditorApp Class Usage Examples

Public Methods

Method Description
JtTimer ( string what_are_we_testing_here ) : System

Performance timer constructor.

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.

Stop ( ) : void

Stop the timer.

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 constructor.
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

Stop() public method

Stop the timer.
public Stop ( ) : void
return void