vSMC
vSMC: 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

typedef WatchType watch_type
 

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 73 of file stop_watch.hpp.

Member Typedef Documentation

template<typename WatchType >
typedef WatchType vsmc::StopWatchGuard< WatchType >::watch_type

Definition at line 77 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 79 of file stop_watch.hpp.

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

Definition at line 82 of file stop_watch.hpp.