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.hpp
Go to the documentation of this file.
1
7
8#ifndef GALAXY_UTILS_TIME_HPP_
9#define GALAXY_UTILS_TIME_HPP_
10
11#include <chrono>
12
13namespace galaxy
14{
15 namespace time
16 {
22 [[nodiscard]]
23 auto now() noexcept -> std::chrono::local_time<std::chrono::system_clock::duration>;
24
30 void dt(const double dt) noexcept;
31
37 [[nodiscard]]
38 double dt() noexcept;
39 } // namespace time
40} // namespace galaxy
41
42#endif
double dt() noexcept
Get galaxy delta time.
Definition Time.cpp:26
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.