Zen 0.3.0
Loading...
Searching...
No Matches
ZEN_EngineTime.h
1#pragma once
2
3#include <chrono>
4
5namespace 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