class PF::Fps

Overview

Measures the Frames Per Second

Defined in:

fps.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(&on_update : UInt32 -> ) #

[View source]

Instance Method Detail

def interval : Float64 #

FPS calculated over this interval (in milliseconds)


[View source]
def interval=(interval : Float64) #

FPS calculated over this interval (in milliseconds)


[View source]
def rate : UInt32 #

the current FPS


[View source]
def update(elapsed_time : Float64) #

[View source]