TRIQS/triqs_modest 3.3.0
Brillouin zone summation
Loading...
Searching...
No Matches
triqs::scoped_timer

#include <triqs_modest/utils/scoped_timer.hpp>

Detailed Description

A utility class for measuring the execution time of a scope.

The scoped_timer class starts a timer upon construction and stops it upon destruction, printing the elapsed time to the standard output. It is useful for profiling and measuring the performance of specific code blocks.

Example usage:

{
scoped_timer timer; // Timer starts here
// Code to measure
} // Timer stops and prints elapsed time here
A utility class for measuring the execution time of a scope.

Definition at line 30 of file scoped_timer.hpp.

Public Member Functions

 scoped_timer ()
 
 ~scoped_timer ()
 

Constructor & Destructor Documentation

◆ scoped_timer()

triqs::scoped_timer::scoped_timer ( )
inline

Definition at line 34 of file scoped_timer.hpp.

◆ ~scoped_timer()

triqs::scoped_timer::~scoped_timer ( )
inline

Definition at line 36 of file scoped_timer.hpp.


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