OpenRaider  0.1.4-dev
Open Source Tomb Raider Game Engine implementation
Functions | Variables
time.cpp File Reference

Time handling utilities. More...

#include <chrono>
#include "global.h"
#include "utils/time.h"
Include dependency graph for time.cpp:

Go to the source code of this file.

Functions

or_time_t systemTimerGet ()
 Read the system timer. More...
 
void systemTimerReset ()
 Reset the system timer. More...
 

Variables

static auto systemTimerStart = std::chrono::steady_clock::now()
 

Detailed Description

Time handling utilities.

Author
xythobuz

Definition in file time.cpp.

Function Documentation

or_time_t systemTimerGet ( )

Read the system timer.

Returns
number of ticks

Definition at line 15 of file time.cpp.

void systemTimerReset ( )

Reset the system timer.

Definition at line 23 of file time.cpp.

Variable Documentation

auto systemTimerStart = std::chrono::steady_clock::now()
static

Definition at line 13 of file time.cpp.