Dogbonee / Dualie

A 3DS homebrew library based on SFML
https://dogbonee.github.io/Dualie/
1 stars 0 forks source link

Enhancement/clock #15

Closed Dogbonee closed 1 month ago

Dogbonee commented 1 month ago

This adds the dl::Clock and dl::Time classes, which handle time and its passing. dl::Clock can be used to calculate deltatime in programs as well as elapsed time. Deltatime can be obtained by calling clock.restart().asSeconds() which will return the deltatime as a float.