메소드 | 설명 | |
---|---|---|
AddFrame ( ) : void |
Indicates that a frame has passed. This should be called on each instance of a frame being drawn or updated (but not both).
|
|
BetweenTimes ( System.DateTime start, System.DateTime end ) : int |
Gets the average framerate between two
|
|
FpsCounter ( ) : System |
Creates a new instance of the FpsCounter.
|
|
FpsCounter ( System.TimeSpan expirationTime ) : System |
Creates a new instance of the FpsCounter with the specified ExpirationTime.
|
|
Immediate ( ) : int |
Gets the FPS between the last two Frames.
|
|
LastHours ( int previousHours = 1 ) : int |
Gets the average FPS over the last specified number of hours.
|
|
LastMinutes ( int previousMinutes = 1 ) : int |
Gets the average FPS over the last specified number of minutes.
|
|
LastSeconds ( int previousSeconds = 1 ) : int |
Gets the average FPS over the last specified number of seconds.
|
|
LastTimeSpan ( System.TimeSpan previousTime ) : int |
Gets the average FPS over the last specified
|
public BetweenTimes ( System.DateTime start, System.DateTime end ) : int | ||
start | System.DateTime | The DateTime to begin the calculation at. |
end | System.DateTime | The DateTime to end the calculation at. |
리턴 | int |
public FpsCounter ( System.TimeSpan expirationTime ) : System | ||
expirationTime | System.TimeSpan | The TimeSpan that represents the |
리턴 | System |
public LastHours ( int previousHours = 1 ) : int | ||
previousHours | int | The number of hours before now that should be included. |
리턴 | int |
public LastMinutes ( int previousMinutes = 1 ) : int | ||
previousMinutes | int | The number of minutes before now that should be included. |
리턴 | int |
public LastSeconds ( int previousSeconds = 1 ) : int | ||
previousSeconds | int | The number of seconds previous to now that should be measured. |
리턴 | int |
public LastTimeSpan ( System.TimeSpan previousTime ) : int | ||
previousTime | System.TimeSpan | The TimeSpan before now that should be included. |
리턴 | int |