C# Class Microsoft.AspNet.SignalR.HighFrequencyTimer

A high-resolution FPS timer.
Exibir arquivo Open project: SignalR/SignalR Class Usage Examples

Public Methods

Method 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

Method Description
Run ( object state ) : void

Method Details

GetFrameId() public method

public GetFrameId ( ) : long
return long

HighFrequencyTimer() public method

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.
return System

HighFrequencyTimer() public method

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.
return System

IsRunning() public method

public IsRunning ( ) : bool
return bool

Start() public method

public Start ( ) : bool
return bool

Stop() public method

public Stop ( ) : bool
return bool