galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
Time.cpp
Go to the documentation of this file.
1
7
8#include "Time.hpp"
9
10namespace galaxy
11{
12 namespace time
13 {
14 static double s_delta_time = 0.0;
15
16 auto now() noexcept -> std::chrono::local_time<std::chrono::system_clock::duration>
17 {
18 return std::chrono::zoned_time {std::chrono::current_zone(), std::chrono::system_clock::now()}.get_local_time();
19 }
20
21 void dt(const double dt) noexcept
22 {
24 }
25
26 double dt() noexcept
27 {
28 return s_delta_time;
29 }
30 } // namespace time
31} // namespace galaxy
double dt() noexcept
Get galaxy delta time.
Definition Time.cpp:26
static double s_delta_time
Definition Time.cpp:14
auto now() noexcept -> std::chrono::local_time< std::chrono::system_clock::duration >
Current local time.
Definition Time.cpp:16
Animated.cpp galaxy.
Definition Animated.cpp:16
STL namespace.