mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-15 20:08:54 +03:00
14 lines
264 B
C++
14 lines
264 B
C++
#pragma once
|
|
|
|
class Timestep {
|
|
private:
|
|
float m_Time;
|
|
|
|
public:
|
|
Timestep(float time = 0.0f) : m_Time(time) { }
|
|
operator float() const { return m_Time; }
|
|
|
|
float GetSeconds() const { return m_Time; }
|
|
float GetMilliseconds() const { return m_Time * 1000.0f; }
|
|
|
|
}; |