|
Ring Daemon
|
Ex: Timer t; std::this_thread::sleep_for(std::chrono::milliseconds(10)); JAMI_LOG("Task took {} ns", t.getDuration<std::chrono::nanoseconds>()); // Timer also automatically prints duration on destruction. 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_LOG("Task took {} ns", t.getDuration<std::chrono::nanoseconds>()); // Timer also automatically prints duration on destruction.
Definition at line 48 of file debug_utils.h.
|
inline |
Definition at line 51 of file debug_utils.h.
|
inline |
Definition at line 56 of file debug_utils.h.
References jami::emitSignal(), and print().

Definition at line 59 of file debug_utils.h.
|
inline |
Definition at line 65 of file debug_utils.h.
References jami::emitSignal(), and JAMI_LOG.
Referenced by ~Timer().
