C# Класс Microsoft.AspNet.SignalR.HighFrequencyTimer

A high-resolution FPS timer.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GetFrameId ( ) : long
HighFrequencyTimer ( double fps, Action callback ) : System

Creates a new instance of a high-resolution FPS timer.

HighFrequencyTimer ( double fps, Action callback, System.Action started, System.Action stopped, Action actualFpsUpdate ) : System

Creates a new instance of a high-resolution FPS timer.

IsRunning ( ) : bool
Start ( ) : bool
Stop ( ) : bool

Приватные методы

Метод Описание
Run ( object state ) : void

Описание методов

GetFrameId() публичный Метод

public GetFrameId ( ) : long
Результат long

HighFrequencyTimer() публичный Метод

Creates a new instance of a high-resolution FPS timer.
public HighFrequencyTimer ( double fps, Action callback ) : System
fps double The desired frame rate per second.
callback Action The callback to be invoked on each frame.
Результат System

HighFrequencyTimer() публичный Метод

Creates a new instance of a high-resolution FPS timer.
public HighFrequencyTimer ( double fps, Action callback, System.Action started, System.Action stopped, Action actualFpsUpdate ) : System
fps double The desired frame rate per second.
callback Action The callback to be invoked on each frame.
started System.Action The callback to be invoked when the timer enters the running state.
stopped System.Action The callback to be invoked when the timer enters the stopped state.
actualFpsUpdate Action The callback to invoked to receive updates of the actual frame rate.
Результат System

IsRunning() публичный Метод

public IsRunning ( ) : bool
Результат bool

Start() публичный Метод

public Start ( ) : bool
Результат bool

Stop() публичный Метод

public Stop ( ) : bool
Результат bool