blob: 16c04d71ea928c0c271f96df45558cb381c262c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef NEWSBOAT_SCOPEMEASURE_H_
#define NEWSBOAT_SCOPEMEASURE_H_
#include <string>
#include "logger.h"
namespace newsboat {
class ScopeMeasure {
public:
ScopeMeasure(const std::string& func, Level ll = Level::DEBUG);
~ScopeMeasure();
void stopover(const std::string& son = "");
private:
struct timeval tv1, tv2;
std::string funcname;
Level lvl;
};
} // namespace newsboat
#endif /* NEWSBOAT_SCOPEMEASURE_H_ */
|