GCP Assignment 1
PerformanceTest.h
Go to the documentation of this file.
1 #pragma once
2 #include <windows.h>
3 #include <cstdint>
4 #include "Logging.h"
5 
9 namespace Core
10 {
16  {
17  public:
22 
27 
32  void testStart();
33 
39  uint64_t testFinish();
40  private:
42  LARGE_INTEGER startingTime;
44  LARGE_INTEGER frequency;
45  };
46 
47 }//End of Core namespace
~PerformanceTest()
Destructs PerformanceTest.
Definition: PerformanceTest.cpp:10
LARGE_INTEGER startingTime
The elapsed number of ticks.
Definition: PerformanceTest.h:42
The namespace for all core code.
Definition: Logging.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:20
PerformanceTest()
Constructs PerformanceTest.
Definition: PerformanceTest.cpp:6
void testStart()
A function to start the performance test. This is to be called when the test is to be started...
Definition: PerformanceTest.cpp:14
LARGE_INTEGER frequency
The number of ticks-per-second.
Definition: PerformanceTest.h:44
Contains details and functions for use with testing performance.
Definition: PerformanceTest.h:15