Level H Engine
Public Member Functions | Private Attributes | List of all members
PerformanceTest Class Reference

Contains details and functions for use with testing performance. More...

#include <PerformanceTest.h>

Collaboration diagram for PerformanceTest:
Collaboration graph

Public Member Functions

 PerformanceTest ()
 Constructs PerformanceTest. More...
 
 ~PerformanceTest ()
 Destructs PerformanceTest. More...
 
void testStart ()
 A function to start the performance test. This is to be called when the test is to be started. More...
 
uint64_t testFinish ()
 A function to get the results of the performance test. This returns the time taken in seconds. More...
 

Private Attributes

LARGE_INTEGER startingTime
 The elapsed number of ticks. More...
 
LARGE_INTEGER frequency
 The number of ticks-per-second. More...
 

Detailed Description

Contains details and functions for use with testing performance.

Constructor & Destructor Documentation

◆ PerformanceTest()

PerformanceTest::PerformanceTest ( )

Constructs PerformanceTest.

◆ ~PerformanceTest()

PerformanceTest::~PerformanceTest ( )

Destructs PerformanceTest.

Member Function Documentation

◆ testFinish()

uint64_t PerformanceTest::testFinish ( )

A function to get the results of the performance test. This returns the time taken in seconds.

Returns
The time taken in seconds.
Here is the call graph for this function:

◆ testStart()

void PerformanceTest::testStart ( )

A function to start the performance test. This is to be called when the test is to be started.

Member Data Documentation

◆ frequency

LARGE_INTEGER PerformanceTest::frequency
private

The number of ticks-per-second.

◆ startingTime

LARGE_INTEGER PerformanceTest::startingTime
private

The elapsed number of ticks.


The documentation for this class was generated from the following files: