C# Class Recognos.Core.TimedAction

Utility class to measure how much time a block of code takes. using(new TimedAction( t => log.Info("action duration {0}",t)) { // block to measure duration }
Inheritance: IDisposable
Datei anzeigen Open project: Recognos/Recognos.Core

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

TimedAction ( Action action ) : System

Initializes a new instance of the TimedAction class.

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

TimedAction() public method

Initializes a new instance of the TimedAction class.
public TimedAction ( Action action ) : System
action Action The action.
return System