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
galaxy::time Namespace Reference

Functions

auto now () noexcept -> std::chrono::local_time< std::chrono::system_clock::duration >
 Current local time.
 
void dt (const double dt) noexcept
 Set galaxy delta time.
 
double dt () noexcept
 Get galaxy delta time.
 

Variables

static double s_delta_time = 0.0
 

Function Documentation

◆ now()

auto galaxy::time::now ( ) -> std::chrono::local_time< std::chrono::system_clock::duration >
nodiscardnoexcept

Current local time.

Returns
Time as a chrono duration.

Definition at line 16 of file Time.cpp.

+ Here is the caller graph for this function:

◆ dt() [1/2]

void galaxy::time::dt ( const double dt)
noexcept

Set galaxy delta time.

Parameters
dtDelta-Time.

Definition at line 21 of file Time.cpp.

+ Here is the call graph for this function:

◆ dt() [2/2]

double galaxy::time::dt ( )
nodiscardnoexcept

Get galaxy delta time.

Returns
Current lag from gameloop.

Definition at line 26 of file Time.cpp.

+ Here is the caller graph for this function:

Variable Documentation

◆ s_delta_time

double galaxy::time::s_delta_time = 0.0
static

Definition at line 14 of file Time.cpp.