HOG2
utils
Timer.h
Go to the documentation of this file.
1
/*
2
* $Id: timer.h
3
* hog2
4
*
5
* Created by Nathan Sturtevant on 10/30/06.
6
* Modified by Nathan Sturtevant on 02/29/20.
7
*
8
* This file is part of HOG2. See https://github.com/nathansttt/hog2 for licensing information.
9
*
10
*/
11
12
#ifndef TIMER_H
13
#define TIMER_H
14
15
#include <stdint.h>
16
#include <fstream>
17
#include <chrono>
18
19
class
Timer
{
20
public
:
21
Timer
();
22
23
void
StartTimer
();
24
double
EndTimer
();
25
double
GetElapsedTime
();
26
private
:
27
std::chrono::high_resolution_clock::time_point
startTime
;
28
double
elapsedTime
;
29
30
};
31
32
#endif // TIMER_H
Timer::StartTimer
void StartTimer()
Definition:
Timer.cpp:9
Timer::Timer
Timer()
Definition:
Timer.cpp:3
Timer::elapsedTime
double elapsedTime
Definition:
Timer.h:28
Timer::GetElapsedTime
double GetElapsedTime()
Definition:
Timer.cpp:25
Timer::startTime
std::chrono::high_resolution_clock::time_point startTime
Definition:
Timer.h:27
Timer
Definition:
Timer.h:19
Timer::EndTimer
double EndTimer()
Definition:
Timer.cpp:15
Generated by
1.8.17