Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Timer.cpp
Go to the documentation of this file.
1
7
8#include "util/Timer.h"
9
10namespace ECS { namespace util {
11
13 m_Elapsed(0)
14 {}
15
17 {}
18
19 void Timer::Tick(float ms)
20 {
21 this->m_Elapsed += std::chrono::duration<float, std::ratio<1, 1000>>(ms);
22 }
23
25 {
26 this->m_Elapsed = Elapsed::zero();
27 }
28
29}} // namespace ECS::util
Elapsed m_Elapsed
Definition: Timer.h:21
void Tick(f32 ms)
Definition: Timer.cpp:19
void Reset()
Definition: Timer.cpp:24