Public Member Functions | List of all members
hpp::fcl::tools::Profiler::ScopedBlock Class Reference

This instance will call Profiler::begin() when constructed and Profiler::end() when it goes out of scope. More...

#include <hpp/fcl/profile.h>

Public Member Functions

 ScopedBlock (const std::string &name, Profiler &prof=Profiler::Instance())
 Start counting time for the block named name of the profiler prof. More...
 
 ~ScopedBlock (void)
 

Detailed Description

This instance will call Profiler::begin() when constructed and Profiler::end() when it goes out of scope.

Constructor & Destructor Documentation

hpp::fcl::tools::Profiler::ScopedBlock::ScopedBlock ( const std::string &  name,
Profiler prof = Profiler::Instance() 
)
inline

Start counting time for the block named name of the profiler prof.

hpp::fcl::tools::Profiler::ScopedBlock::~ScopedBlock ( void  )
inline