Class Profiler::ScopedBlock

Nested Relationships

This class is a nested type of Class Profiler.

Class Documentation

class ScopedBlock

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

Public Functions

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

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

inline ~ScopedBlock()