class SFML::Time

Represents a time value. Stored internally as microseconds (int64), same as sfTime in CSFML. Immutable and Comparable, so two Times can be == / < / > / sorted.

SFML::Time.seconds(1.5) #=> 1_500_000 ยตs SFML::Time.milliseconds(500) SFML::Time.microseconds(42) SFML::Time.zero

t1 + t2 # sum of two Times t.as_seconds # Float seconds