Zen
0.3.0
Loading...
Searching...
No Matches
ZEN_DeltaTime.h
1
#pragma once
2
3
namespace
Zen {
4
class
DeltaTime {
5
public
:
6
DeltaTime(
float
time = 0.0f) : m_time(time) {}
7
8
operator
float()
const
{
return
m_time; }
// always returns a float if just called by itself
9
10
// these are just for clarification and ease of life
11
float
seconds()
const
{
return
m_time; }
12
float
milliseconds()
const
{
return
m_time * 1000.0f; }
13
14
private
:
15
float
m_time = 0.0f;
16
};
17
}
// namespace Zen
engine
zen
time
ZEN_DeltaTime.h
Generated by
1.14.0