C# 클래스 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 }
상속: IDisposable
파일 보기 프로젝트 열기: Recognos/Recognos.Core

공개 메소드들

메소드 설명
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.

메소드 상세

Dispose() 공개 메소드

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

TimedAction() 공개 메소드

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