code_profiler
scoped_timer.cpp
Go to the documentation of this file.
3 
4 namespace tue
5 {
6 
7 // ----------------------------------------------------------------------------------------------------
8 
10  : profiler_(profiler)
11 {
12  profiler_.startTimer(label);
13 }
14 
15 // ----------------------------------------------------------------------------------------------------
16 
18 {
20 }
21 
22 }
std::string
tue::Profiler::stopTimer
void stopTimer()
Definition: profiler.cpp:64
tue::Profiler::startTimer
void startTimer(const std::string &name)
Definition: profiler.cpp:38
tue::ScopedTimer::ScopedTimer
ScopedTimer(Profiler &profiler, const std::string &label)
Definition: scoped_timer.cpp:9
tue::ScopedTimer::~ScopedTimer
virtual ~ScopedTimer()
Definition: scoped_timer.cpp:17
tue::ScopedTimer::profiler_
Profiler & profiler_
Definition: scoped_timer.h:22
profiler.h
profiler
tue::Profiler profiler
Definition: test_profiler.cpp:4
tue::Profiler
Definition: profiler.h:11
scoped_timer.h
tue
Definition: loop_timer.h:8