ListPrinter Struct Reference

CPP API: mio::timing::ListPrinter Struct Reference
mio::timing::ListPrinter Struct Reference

#include <list_printer.h>

Inheritance diagram for mio::timing::ListPrinter:
Collaboration diagram for mio::timing::ListPrinter:

Public Member Functions

void print (const std::list< TimerRegistration > &timer_register, std::ostream &out) override
 Print the elapsed time of all registered timers in a list. More...
 
- Public Member Functions inherited from mio::timing::Printer
virtual ~Printer ()
 

Member Function Documentation

◆ print()

void mio::timing::ListPrinter::print ( const std::list< TimerRegistration > &  timer_register,
std::ostream &  out 
)
inlineoverridevirtual

Print the elapsed time of all registered timers in a list.

If multiple threads were used for timing, a second list with the results aggregated over threads is printed.

Parameters
[in]timer_registerTimerRegistrar's register of timers.
[in,out]outThe stream to write to.

Implements mio::timing::Printer.