Ating for MQL5
Loading...
Searching...
No Matches
TestTime Class Reference

Class for measuring and printing the execution time of code. More...

Public Member Functions

 TestTime (void)
 Default constructor for TestTime.
 
void Start ()
 Starts the time measurement.
 
void End ()
 Ends the time measurement and prints the elapsed time.
 
 ~TestTime (void)
 Default destructor for TestTime.
 

Public Attributes

uint start
 Start time of the measurement.
 
uint end
 End time of the measurement.
 

Detailed Description

Class for measuring and printing the execution time of code.

This class provides methods to start and end time measurements and print the elapsed time. It is useful for profiling and debugging performance in backtests.

Constructor & Destructor Documentation

◆ TestTime()

TestTime::TestTime ( void )
inline

Default constructor for TestTime.

◆ ~TestTime()

TestTime::~TestTime ( void )
inline

Default destructor for TestTime.

Member Function Documentation

◆ End()

void TestTime::End ( )

Ends the time measurement and prints the elapsed time.

◆ Start()

void TestTime::Start ( )

Starts the time measurement.

Member Data Documentation

◆ end

uint TestTime::end

End time of the measurement.

◆ start

uint TestTime::start

Start time of the measurement.


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