25#define BEGIN_TIMED_BLOCK(NAME) \
26 std::chrono::high_resolution_clock::time_point block_start_##NAME = std::chrono::high_resolution_clock::now();
28void set_time_block(
const std::string& str, std::chrono::high_resolution_clock::time_point start,
29 std::chrono::high_resolution_clock::time_point end);
31#define END_TIMED_BLOCK(NAME) \
32 std::chrono::high_resolution_clock::time_point block_end_##NAME = std::chrono::high_resolution_clock::now(); \
33 set_time_block(#NAME, block_start_##NAME, block_end_##NAME);
std::map< std::string, int > profiler_information_map
Definition: profiler.cpp:22
void set_time_block(const std::string &str, std::chrono::high_resolution_clock::time_point start, std::chrono::high_resolution_clock::time_point end)
Definition: profiler.cpp:24