44 std::chrono::time_point<std::chrono::high_resolution_clock> lastTime;
45 double deltaTime = 0.0;
void operator=(const Stopwatch &)=delete
void reset()
Resets the Stopwatch.
Definition Stopwatch.cpp:27
void tick()
Updates deltatime to hold the time difference between now and the last tick.
Definition Stopwatch.cpp:21
static Stopwatch & getInstance()
Returns an instance of the Stopwatch class.
Definition Stopwatch.cpp:11
Stopwatch(Stopwatch &other)=delete
double getDeltaTime() const
Returns the deltatime, updated by Stopwatch::tick.
Definition Stopwatch.cpp:16
Definition Difficulty.h:6