include/entropic/types/logging.h¶
include/entropic/types/logging.h
entropic::log
auto entropic::log::now()
Get current time for timing measurements.
- Returns
- Steady clock time point.
double entropic::log::elapsed_ms(std::chrono::steady_clock::time_point start, std::chrono::steady_clock::time_point end)
Compute elapsed milliseconds between two time points.
- Parameters
start— Start time point.end— End time point.
- Returns
- Elapsed time in milliseconds.
entropic::log::HandleLogScope
gh#59 (v2.3.1): RAII guard — sets thread's current handle_id.
entropic::log::HandleLogScope::HandleLogScope(int handle_id)
Enter scope; sets thread current handle_id.
gh#59 RAII enter — see header.
- Parameters
handle_id— The id to bind for this thread.
- Returns
- n/a (constructor).
entropic::log::HandleLogScope::~HandleLogScope()
Exit scope; restores previous handle_id.
gh#59 RAII exit — see header.
- Returns
- n/a (destructor).
entropic::log::HandleLogScope::HandleLogScope(const HandleLogScope &)=delete
HandleLogScope & entropic::log::HandleLogScope::operator=(const HandleLogScope &)=delete