🚨 fix warnings #2113

This commit is contained in:
Niels Lohmann
2020-05-16 14:26:17 +02:00
parent f40a9f876a
commit 28e20bd9e4
8 changed files with 47 additions and 20 deletions
+1 -1
View File
@@ -2913,7 +2913,7 @@ typedef timer_large_integer::type ticks_t;
//unsigned int getElapsedMilliseconds() const {
// return static_cast<unsigned int>(getElapsedMicroseconds() / 1000);
//}
double getElapsedSeconds() const { return (getCurrentTicks() - m_ticks) / 1000000.0; }
double getElapsedSeconds() const { return static_cast<double>((getCurrentTicks() - m_ticks)) / 1000000.0; }
private:
ticks_t m_ticks = 0;