vSMC  v3.0.0
Scalable Monte Carlo
Public Types | Public Member Functions | List of all members
vsmc::StopWatchGuard< WatchType > Class Template Reference

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

#include <vsmc/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 vsmc::StopWatchGuard< WatchType >

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

Definition at line 91 of file stop_watch.hpp.

Member Typedef Documentation

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

Definition at line 94 of file stop_watch.hpp.

Constructor & Destructor Documentation

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

Definition at line 96 of file stop_watch.hpp.

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

Definition at line 103 of file stop_watch.hpp.