Mana
Loading...
Searching...
No Matches
Namespaces | Functions
time.cpp File Reference
#include "time.h"
#include <algorithm>
#include <SDL.h>

Go to the source code of this file.

Namespaces

namespace  Time
 

Functions

uint32_t Time::absoluteTimeMs ()
 The time in milliseconds since the program started (wraps around after ~49 days).
 
unsigned Time::deltaTimeMs ()
 The time in milliseconds since the last frame, but never more than 1000.
 
float Time::deltaTime ()
 The time in seconds since the last frame, but never more than 1.
 
void Time::beginFrame ()
 Called at the start of each frame, updates the above variables.