diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-11-11 09:11:19 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-11-11 09:11:19 +0100 |
commit | 44a04278496008a89ffa7044bc52c7cdb9f4d425 (patch) | |
tree | 4520407febe1fa69b3ad9e72dd8478140e0b9ba9 /src/crepe/api/LoopTimer.cpp | |
parent | 4021431a0da18829f3b0d47bbc83e49c783ebf76 (diff) |
added more doxygen comments
Diffstat (limited to 'src/crepe/api/LoopTimer.cpp')
-rw-r--r-- | src/crepe/api/LoopTimer.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/crepe/api/LoopTimer.cpp b/src/crepe/api/LoopTimer.cpp index 98ce08d..aaba8b3 100644 --- a/src/crepe/api/LoopTimer.cpp +++ b/src/crepe/api/LoopTimer.cpp @@ -1,10 +1,14 @@ #include "../facade/SDLContext.h" +#include "../util/log.h" #include "LoopTimer.h" using namespace crepe; -LoopTimer::LoopTimer() {} + +LoopTimer::LoopTimer() { + dbg_trace(); +} LoopTimer & LoopTimer::get_instance() { static LoopTimer instance; @@ -55,4 +59,5 @@ void LoopTimer::enforce_frame_rate() { SDLContext::get_instance().delay(delay_time); } } + double LoopTimer::get_lag() const { return elapsed_time - elapsed_fixed_time; } |