Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::Timer::SimplePrinter Class Reference

Displays the time elapsed between the call to the constructor and the destructor. More...

#include <arcane/core/Timer.h>

Public Member Functions

 SimplePrinter (ITraceMng *tm, const String &msg)
 SimplePrinter (ITraceMng *tm, const String &msg, bool is_active)

Detailed Description

Displays the time elapsed between the call to the constructor and the destructor.

This class allows simply displaying, at the time of the destructor, the real time elapsed since the call to the constructor. The display is done via the info() method of ITraceMng.

{
Timer::SimplePrinter sp(traceMng(),"myFunction");
myFunction();
}
Displays the time elapsed between the call to the constructor and the destructor.
Definition Timer.h:175

Definition at line 174 of file Timer.h.

Constructor & Destructor Documentation

◆ SimplePrinter() [1/2]

Arcane::Timer::SimplePrinter::SimplePrinter ( ITraceMng * tm,
const String & msg )

Definition at line 218 of file Timer.cc.

◆ SimplePrinter() [2/2]

Arcane::Timer::SimplePrinter::SimplePrinter ( ITraceMng * tm,
const String & msg,
bool is_active )

Definition at line 231 of file Timer.cc.

◆ ~SimplePrinter()

Arcane::Timer::SimplePrinter::~SimplePrinter ( )

Definition at line 244 of file Timer.cc.


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