]>
git.proxmox.com Git - ceph.git/blob - ceph/src/exporter/util.h
1 #include "common/hostname.h"
5 #define TIMED_FUNCTION() BlockTimer timer(__FILE__, __FUNCTION__)
9 BlockTimer(std::string file
, std::string function
);
14 std::chrono::duration
<double, std::milli
> ms
;
15 std::string file
, function
;
17 std::chrono::time_point
<std::chrono::high_resolution_clock
> t1
, t2
;
20 bool string_is_digit(std::string s
);
21 std::string
read_file_to_string(std::string path
);
22 std::string
get_hostname(std::string path
);