SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
GlobalTimer.cpp
Go to the documentation of this file.
1 /**
2  * \file GlobalTimer.cpp
3  * \authors Michael Goettlicher
4  * \date March 2018
5  * \authors Marcus Hudritsch
6  * \copyright http://opensource.org/licenses/GPL-3.0
7  * \remarks Please use clangformat to format the code. See more code style on
8  * https://github.com/cpvrlab/SLProject4/wiki/SLProject-Coding-Style
9 */
10 
11 #include "GlobalTimer.h"
12 
14 
16 {
17  _timer.start();
18 }
19 
21 {
22  return _timer.elapsedTimeInSec();
23 }
24 
26 {
28 }
static HighResTimer _timer
Definition: GlobalTimer.h:24
static void timerStart()
Definition: GlobalTimer.cpp:15
static float timeS()
Definition: GlobalTimer.cpp:20
static float timeMS()
Definition: GlobalTimer.cpp:25
High Resolution Timer class using C++11.
Definition: HighResTimer.h:31
float elapsedTimeInMilliSec()
Definition: HighResTimer.h:38
void start()
Definition: HighResTimer.h:35
float elapsedTimeInSec()
Definition: HighResTimer.h:37