summaryrefslogtreecommitdiff
path: root/include/scopemeasure.h
blob: 3e5f4e48f9a51c0a05dc5eaf8eaa54cd251a9cdc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef NEWSBOAT_SCOPEMEASURE_H_
#define NEWSBOAT_SCOPEMEASURE_H_

#include <string>

#include "libnewsboat-ffi/src/scopemeasure.rs.h"

namespace newsboat {

class ScopeMeasure {
public:
	explicit ScopeMeasure(const std::string& func);
	~ScopeMeasure() = default;
	void stopover(const std::string& son = "");

private:
	rust::Box<scopemeasure::bridged::ScopeMeasure> rs_object;
};

} // namespace newsboat

#endif /* NEWSBOAT_SCOPEMEASURE_H_ */