26#define BEGIN_TIMED_BLOCK(NAME) \
27 std::chrono::high_resolution_clock::time_point block_start_##NAME = std::chrono::high_resolution_clock::now();
29void set_time_block(
const std::string& str, std::chrono::high_resolution_clock::time_point start,
30 std::chrono::high_resolution_clock::time_point end);
32#define END_TIMED_BLOCK(NAME) \
33 std::chrono::high_resolution_clock::time_point block_end_##NAME = std::chrono::high_resolution_clock::now(); \
34 set_time_block(#NAME, block_start_##NAME, block_end_##NAME);
std::map< std::string, int > profiler_information_map
Definition: profiler.cpp:22
std::map< std::string, int > & get_profile_information()
Definition: profiler.cpp:29
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