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 [[nodiscard]]
31 std::uint64_t time_since_epoch() noexcept;
32
38 void dt(const double dt) noexcept;
39
45 [[nodiscard]]
46 double dt() noexcept;
47 } // namespace time
48} // namespace galaxy
49
50#endif
void dt(const double dt) noexcept
Set galaxy delta time.
Definition Time.cpp:27
auto now() noexcept -> std::chrono::local_time< std::chrono::system_clock::duration >
Current local time.
Definition Time.cpp:16
std::uint64_t time_since_epoch() noexcept
Time since epoch.
Definition Time.cpp:21
Application.hpp galaxy.