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
Afficher le fichier Open project: Recognos/Recognos.Core

Méthodes publiques

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

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

TimedAction() public méthode

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