Level H Engine
PerformanceTest.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <cstdint>
4 #include <windows.h>
5 
10 {
11 public:
16 
21 
26  void testStart();
27 
33  uint64_t testFinish();
34 
35 private:
37  LARGE_INTEGER startingTime;
39  LARGE_INTEGER frequency;
40 };
Contains details and functions for use with testing performance.
Definition: PerformanceTest.h:9
PerformanceTest()
Constructs PerformanceTest.
Definition: PerformanceTest.cpp:5
uint64_t testFinish()
A function to get the results of the performance test. This returns the time taken in seconds...
Definition: PerformanceTest.cpp:19
LARGE_INTEGER startingTime
The elapsed number of ticks.
Definition: PerformanceTest.h:37
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()
Destructs PerformanceTest.
Definition: PerformanceTest.cpp:9
LARGE_INTEGER frequency
The number of ticks-per-second.
Definition: PerformanceTest.h:39