![]() |
Dragonfly 2.2
A text-based game engine
|
The clock, for timing (such as the game loop) More...
#include <Clock.h>
Public Member Functions | |
| Clock () | |
| Sets prev_ts to current time. | |
| long int | delta (void) |
| Return time elapsed since delta() was called. | |
| long int | split (void) |
| Return time elapsed since delta() was last called. | |
Protected Attributes | |
| struct timespec | prev_ts |
The clock, for timing (such as the game loop)
| long int Clock::delta | ( | void | ) |
Return time elapsed since delta() was called.
Units are microseconds.
| long int Clock::split | ( | void | ) |
Return time elapsed since delta() was last called.
Units are microseconds.
1.7.3