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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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