Loading...
Searching...
No Matches
scopeLog.hpp
Go to the documentation of this file.
1
2
#pragma once
3
4
#include "
clog/common.hpp
"
5
6
namespace
by {
13
class
_nout
scopeLog
:
public
end {
14
BY(ME(
scopeLog
, end))
15
16
public
:
17
scopeLog
(
const
std::function<
void
(
nllong
)>&
l
);
18
19
private
:
20
static
nllong
_measureNow();
21
22
private
:
23
nllong
_prev;
24
};
25
}
// namespace by
by::scopeLog
Helper class to finalize scope logging with elapsed time.
Definition
scopeLog.hpp:13
common.hpp
by::noWrap
Rich logging support with polymorphic type conversion.
Definition
richLog.hpp:34