Ring Daemon 16.0.0
|
Ex: Timer t; std::this_thread::sleep_for(std::chrono::milliseconds(10)); JAMI_DBG() << "Task took " << t.getDuration<std::chrono::nanoseconds>() << " ns";. More...
#include <debug_utils.h>
Public Member Functions | |
template<class Period = std::ratio<1>> | |
uint64_t | getDuration () const |
void | print (std::string_view action) const |
Timer (std::string_view name) | |
~Timer () | |
Ex: Timer t; std::this_thread::sleep_for(std::chrono::milliseconds(10)); JAMI_DBG() << "Task took " << t.getDuration<std::chrono::nanoseconds>() << " ns";.
Definition at line 48 of file debug_utils.h.
|
inline |
Definition at line 51 of file debug_utils.h.
|
inline |
Definition at line 53 of file debug_utils.h.
References jami::emitSignal(), and print().
Definition at line 58 of file debug_utils.h.
|
inline |
Definition at line 64 of file debug_utils.h.
References jami::emitSignal(), and JAMI_DBG.
Referenced by ~Timer().