C# Class Microsoft.AspNet.SignalR.HighFrequencyTimer

A high-resolution FPS timer.
Afficher le fichier Open project: SignalR/SignalR Class Usage Examples

Méthodes publiques

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

Private Methods

Méthode Description
Run ( object state ) : void

Method Details

GetFrameId() public méthode

public GetFrameId ( ) : long
Résultat long

HighFrequencyTimer() public méthode

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.
Résultat System

HighFrequencyTimer() public méthode

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.
Résultat System

IsRunning() public méthode

public IsRunning ( ) : bool
Résultat bool

Start() public méthode

public Start ( ) : bool
Résultat bool

Stop() public méthode

public Stop ( ) : bool
Résultat bool