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
10
namespace
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
{
23
s_delta_time
=
dt
;
24
}
25
26
double
dt
() noexcept
27
{
28
return
s_delta_time
;
29
}
30
}
// namespace time
31
}
// namespace galaxy
Time.hpp
galaxy::time::dt
double dt() noexcept
Get galaxy delta time.
Definition
Time.cpp:26
galaxy::time::s_delta_time
static double s_delta_time
Definition
Time.cpp:14
galaxy::time::now
auto now() noexcept -> std::chrono::local_time< std::chrono::system_clock::duration >
Current local time.
Definition
Time.cpp:16
galaxy
Animated.cpp galaxy.
Definition
Animated.cpp:16
std
STL namespace.
galaxy
src
galaxy
time
Time.cpp
Generated on Fri Sep 12 2025 07:29:48 for galaxy by
1.12.0