#include <chrono>
#include <map>
#include <string>
Go to the source code of this file.
|
#define | BEGIN_TIMED_BLOCK(NAME) std::chrono::high_resolution_clock::time_point block_start_##NAME = std::chrono::high_resolution_clock::now(); |
|
#define | END_TIMED_BLOCK(NAME) |
|
|
void | set_time_block (const std::string &str, std::chrono::high_resolution_clock::time_point start, std::chrono::high_resolution_clock::time_point end) |
|
◆ BEGIN_TIMED_BLOCK
#define BEGIN_TIMED_BLOCK |
( |
|
NAME | ) |
std::chrono::high_resolution_clock::time_point block_start_##NAME = std::chrono::high_resolution_clock::now(); |
◆ END_TIMED_BLOCK
#define END_TIMED_BLOCK |
( |
|
NAME | ) |
|
Value: std::chrono::high_resolution_clock::time_point block_end_##NAME = std::chrono::high_resolution_clock::now(); \
set_time_block(#NAME, block_start_##NAME, block_end_##NAME);
◆ set_time_block()
void set_time_block |
( |
const std::string & |
str, |
|
|
std::chrono::high_resolution_clock::time_point |
start, |
|
|
std::chrono::high_resolution_clock::time_point |
end |
|
) |
| |
◆ profiler_information_map
std::map<std::string, int> profiler_information_map |
|
extern |