Health-GPS  1.2.2.0
Global Health Policy Simulation model (Health-GPS)
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. More...
 

Public Member Functions

 ScopedTimer (const char *func)
 Initialise a new instance of the ScopedTimer class. More...
 
 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. More...
 

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

◆ ScopedTimer() [2/3]

hgps::core::ScopedTimer::ScopedTimer ( const ScopedTimer )
delete

◆ ScopedTimer() [3/3]

hgps::core::ScopedTimer::ScopedTimer ( ScopedTimer &&  )
delete

◆ ~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

◆ operator=() [2/2]

auto hgps::core::ScopedTimer::operator= ( ScopedTimer &&  ) -> ScopedTimer &=delete
delete

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