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
13
HighResTimer
GlobalTimer::_timer
;
14
15
void
GlobalTimer::timerStart
()
16
{
17
_timer
.
start
();
18
}
19
20
float
GlobalTimer::timeS
()
21
{
22
return
_timer
.
elapsedTimeInSec
();
23
}
24
25
float
GlobalTimer::timeMS
()
26
{
27
return
_timer
.
elapsedTimeInMilliSec
();
28
}
GlobalTimer.h
GlobalTimer::_timer
static HighResTimer _timer
Definition:
GlobalTimer.h:24
GlobalTimer::timerStart
static void timerStart()
Definition:
GlobalTimer.cpp:15
GlobalTimer::timeS
static float timeS()
Definition:
GlobalTimer.cpp:20
GlobalTimer::timeMS
static float timeMS()
Definition:
GlobalTimer.cpp:25
HighResTimer
High Resolution Timer class using C++11.
Definition:
HighResTimer.h:31
HighResTimer::elapsedTimeInMilliSec
float elapsedTimeInMilliSec()
Definition:
HighResTimer.h:38
HighResTimer::start
void start()
Definition:
HighResTimer.h:35
HighResTimer::elapsedTimeInSec
float elapsedTimeInSec()
Definition:
HighResTimer.h:37
modules
utils
source
GlobalTimer.cpp
Generated by
1.9.1