Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
geo
master
Geo
Camera
Game
Player
Timer
World
Built with Crystal 1.9.2
2023-10-07 18:24:16 UTC
class
Geo::Timer
Geo::Timer
Reference
Object
Defined in:
geo/timer.cr
Constructors
.new
(length : Float64 | Float32 | Int32)
Instance Method Summary
#active?
: Bool
#done?
#increase
(delta_t : Float32)
#length
: Float64 | Float32 | Int32
#percentage
#reset
#restart
#start
#time
: Float32
Constructor Detail
def self.
new
(length : Float64 | Float32 | Int32)
#
[
View source
]
Instance Method Detail
def
active?
: Bool
#
[
View source
]
def
done?
#
[
View source
]
def
increase
(delta_t : Float32)
#
[
View source
]
def
length
: Float64 | Float32 | Int32
#
[
View source
]
def
percentage
#
[
View source
]
def
reset
#
[
View source
]
def
restart
#
[
View source
]
def
start
#
[
View source
]
def
time
: Float32
#
[
View source
]