Hana
Loading...
Searching...
No Matches
Timestep.h
1#pragma once
2
3namespace Hana
4{
5 class Timestep
6 {
7 public:
8 Timestep(float time = 0.0f)
9 : m_Time(time)
10 {
11 }
12
13 operator float() const { return m_Time; }
14
15 float GetSeconds() const { return m_Time; }
16 float GetMilliseconds() const { return m_Time * 1000.0f; }
17 private:
18 float m_Time;
19 };
20
21}