Skip to content

Commit 3b8e414

Browse files
authored
Merge pull request #17 - Fixed compiler errors when building for C++20
Fixed compiler errors when building for C++20.
2 parents 62d8ffa + a8d3eb0 commit 3b8e414

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Walnut/src/Walnut/Timer.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ namespace Walnut {
1414
Reset();
1515
}
1616

17-
void Timer::Reset()
17+
void Reset()
1818
{
1919
m_Start = std::chrono::high_resolution_clock::now();
2020
}
2121

22-
float Timer::Elapsed()
22+
float Elapsed()
2323
{
2424
return std::chrono::duration_cast<std::chrono::nanoseconds>(std::chrono::high_resolution_clock::now() - m_Start).count() * 0.001f * 0.001f * 0.001f;
2525
}
2626

27-
float Timer::ElapsedMillis()
27+
float ElapsedMillis()
2828
{
2929
return Elapsed() * 1000.0f;
3030
}

0 commit comments

Comments
 (0)