MCKL
Monte Carlo Kernel Library
Public Types | Public Member Functions | List of all members
mckl::StopWatchGuard< WatchType > Class Template Reference

Start and stop a StopWatch in scope (similiar to a mutex lock guard) More...

#include <mckl/utility/stop_watch.hpp>

Public Types

using watch_type = WatchType
 

Public Member Functions

 StopWatchGuard (watch_type &watch, bool start=true)
 
 ~StopWatchGuard ()
 

Detailed Description

template<typename WatchType>
class mckl::StopWatchGuard< WatchType >

Start and stop a StopWatch in scope (similiar to a mutex lock guard)

Definition at line 136 of file stop_watch.hpp.

Member Typedef Documentation

◆ watch_type

template<typename WatchType >
using mckl::StopWatchGuard< WatchType >::watch_type = WatchType

Definition at line 139 of file stop_watch.hpp.

Constructor & Destructor Documentation

◆ StopWatchGuard()

template<typename WatchType >
mckl::StopWatchGuard< WatchType >::StopWatchGuard ( watch_type watch,
bool  start = true 
)
inline

Definition at line 141 of file stop_watch.hpp.

◆ ~StopWatchGuard()

template<typename WatchType >
mckl::StopWatchGuard< WatchType >::~StopWatchGuard ( )
inline

Definition at line 149 of file stop_watch.hpp.