Health-GPS 3.0.0.0
Global Health Policy Simulation model (Health-GPS)
Loading...
Searching...
No Matches
hgps::core::ScopedTimer Class Reference

Timer to printout scope execution time in milliseconds. More...

#include <scoped_timer.h>

Public Types

using ClockType = std::chrono::steady_clock
 The time measuring clock.

Public Member Functions

 ScopedTimer (const char *func)
 Initialise a new instance of the ScopedTimer class.
 ScopedTimer (const ScopedTimer &)=delete
 ScopedTimer (ScopedTimer &&)=delete
auto operator= (const ScopedTimer &) -> ScopedTimer &=delete
auto operator= (ScopedTimer &&) -> ScopedTimer &=delete
 ~ScopedTimer ()
 Destroys the ScopedTimer instance, printout lifetime duration.

Detailed Description

Timer to printout scope execution time in milliseconds.

Member Typedef Documentation

◆ ClockType

using hgps::core::ScopedTimer::ClockType = std::chrono::steady_clock

The time measuring clock.

Constructor & Destructor Documentation

◆ ScopedTimer() [1/3]

hgps::core::ScopedTimer::ScopedTimer ( const char * func)
inline

Initialise a new instance of the ScopedTimer class.

Parameters
funcThe scope function name identification
Here is the caller graph for this function:

◆ ScopedTimer() [2/3]

hgps::core::ScopedTimer::ScopedTimer ( const ScopedTimer & )
delete
Here is the call graph for this function:

◆ ScopedTimer() [3/3]

hgps::core::ScopedTimer::ScopedTimer ( ScopedTimer && )
delete
Here is the call graph for this function:

◆ ~ScopedTimer()

hgps::core::ScopedTimer::~ScopedTimer ( )
inline

Destroys the ScopedTimer instance, printout lifetime duration.

Member Function Documentation

◆ operator=() [1/2]

auto hgps::core::ScopedTimer::operator= ( const ScopedTimer & ) ->ScopedTimer &=delete
delete
Here is the call graph for this function:

◆ operator=() [2/2]

auto hgps::core::ScopedTimer::operator= ( ScopedTimer && ) ->ScopedTimer &=delete
delete
Here is the call graph for this function:

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