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.
This adds the
dl::Clock
anddl::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 callingclock.restart().asSeconds()
which will return the deltatime as a float.