Level H Engine
LevelHEngine
Core
PerformanceTest.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <cstdint>
4
#include <windows.h>
5
9
class
PerformanceTest
10
{
11
public
:
15
PerformanceTest
();
16
20
~PerformanceTest
();
21
26
void
testStart
();
27
33
uint64_t
testFinish
();
34
35
private
:
37
LARGE_INTEGER
startingTime
;
39
LARGE_INTEGER
frequency
;
40
};
PerformanceTest
Contains details and functions for use with testing performance.
Definition:
PerformanceTest.h:9
PerformanceTest::PerformanceTest
PerformanceTest()
Constructs PerformanceTest.
Definition:
PerformanceTest.cpp:5
PerformanceTest::testFinish
uint64_t testFinish()
A function to get the results of the performance test. This returns the time taken in seconds...
Definition:
PerformanceTest.cpp:19
PerformanceTest::startingTime
LARGE_INTEGER startingTime
The elapsed number of ticks.
Definition:
PerformanceTest.h:37
PerformanceTest::testStart
void testStart()
A function to start the performance test. This is to be called when the test is to be started...
Definition:
PerformanceTest.cpp:13
PerformanceTest::~PerformanceTest
~PerformanceTest()
Destructs PerformanceTest.
Definition:
PerformanceTest.cpp:9
PerformanceTest::frequency
LARGE_INTEGER frequency
The number of ticks-per-second.
Definition:
PerformanceTest.h:39
Generated on Mon Nov 5 2018 12:22:14 for Level H Engine by
1.8.13