Zen
0.3.0
Loading...
Searching...
No Matches
ZEN_EngineTime.h
1
#pragma once
2
3
#include <chrono>
4
5
namespace
Zen {
6
class
EngineTime
{
7
public
:
8
static
float
getTime() {
9
static
const
auto
start = std::chrono::steady_clock::now();
10
return
std::chrono::duration<float>(std::chrono::steady_clock::now() - start).count();
11
}
12
};
13
}
// namespace Zen
Zen::EngineTime
Definition
ZEN_EngineTime.h:6
engine
zen
time
ZEN_EngineTime.h
Generated by
1.14.0