Graph Framework
Loading...
Searching...
No Matches
timing::measure_diagnostic_threaded Class Reference

A timing object that averages over multiple threads. More...

#include <timing.hpp>

Public Member Functions

 measure_diagnostic_threaded (const std::string message="")
 Construct a time diagnostic object.
 
void start_time (const size_t thread_number)
 Start time for a given thread.
 
void end_time (const size_t thread_number)
 End time for a given thread.
 
void print ()
 Print out the average time.
 

Detailed Description

A timing object that averages over multiple threads.

Constructor & Destructor Documentation

◆ measure_diagnostic_threaded()

timing::measure_diagnostic_threaded::measure_diagnostic_threaded ( const std::string  message = "")
inline

Construct a time diagnostic object.

Parameters
[in]messageDiscription of what is being timed.

Member Function Documentation

◆ end_time()

void timing::measure_diagnostic_threaded::end_time ( const size_t  thread_number)
inline

End time for a given thread.

Parameters
[in]thread_numberThe thread number to start the timer for.

◆ start_time()

void timing::measure_diagnostic_threaded::start_time ( const size_t  thread_number)
inline

Start time for a given thread.

Parameters
[in]thread_numberThe thread number to start the timer for.

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