C# 클래스 GSF.TimeSeries.PrecisionInputTimer

Precision input timer.
This class is used to create highly accurate simulated data inputs aligned to the local clock.
One static instance of this internal class is created per encountered frame rate.
상속: IDisposable
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf 1 사용 예제들

공개 메소드들

메소드 설명
AddReference ( ) : void

Adds a reference to this PrecisionInputTimer.

Attach ( int framesPerSecond, Action exceptionHandler = null ) : PrecisionInputTimer

Attach to a PrecisionInputTimer for the specified framesPerSecond.

Detach ( PrecisionInputTimer &timer ) : void

Detach from the PrecisionInputTimer.

Timer reference will be set to null after detach.

Dispose ( ) : void

Releases all the resources used by the PrecisionInputTimer object.

RemoveReference ( ) : void

Removes a reference to this PrecisionInputTimer.

비공개 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the PrecisionInputTimer object and optionally releases the managed resources.

PrecisionInputTimer ( int framesPerSecond ) : System

Create a new PrecisionInputTimer class.

SynchronizeInputTimer ( object state ) : void
m_timer_Tick ( object sender, EventArgs e ) : void

메소드 상세

AddReference() 공개 메소드

Adds a reference to this PrecisionInputTimer.
public AddReference ( ) : void
리턴 void

Attach() 공개 정적인 메소드

Attach to a PrecisionInputTimer for the specified framesPerSecond.
public static Attach ( int framesPerSecond, Action exceptionHandler = null ) : PrecisionInputTimer
framesPerSecond int Desired frames per second for the input timer.
exceptionHandler Action Optional delegate to handle exception reporting from the timer.
리턴 PrecisionInputTimer

Detach() 공개 정적인 메소드

Detach from the PrecisionInputTimer.
Timer reference will be set to null after detach.
public static Detach ( PrecisionInputTimer &timer ) : void
timer PrecisionInputTimer Timer instance to detach from.
리턴 void

Dispose() 공개 메소드

Releases all the resources used by the PrecisionInputTimer object.
public Dispose ( ) : void
리턴 void

RemoveReference() 공개 메소드

Removes a reference to this PrecisionInputTimer.
public RemoveReference ( ) : void
리턴 void