summaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/timer.cpp2
-rw-r--r--src/utils/timer.hpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/utils/timer.cpp b/src/utils/timer.cpp
index 1461ac4b..e708a7ed 100644
--- a/src/utils/timer.cpp
+++ b/src/utils/timer.cpp
@@ -35,7 +35,7 @@ long long int system_time_ms()
}
frequency_clock_t::frequency_clock_t()
- : frequency_{0.0}, last_tick_{0}, time_function_{nullptr}
+ : frequency_{10.0}, last_tick_{0}, time_function_{nullptr}
{}
diff --git a/src/utils/timer.hpp b/src/utils/timer.hpp
index ce6336eb..b58397ba 100644
--- a/src/utils/timer.hpp
+++ b/src/utils/timer.hpp
@@ -51,6 +51,7 @@ private:
public:
frequency_clock_t();
frequency_clock_t(float frequency);
+ frequency_clock_t(float frequency, unsigned long last_tick, time_function_t time_function);
static float frequency_to_period(float frequency);
bool started();