![]() |
Peano
|
Go to the source code of this file.
Macros | |
#define | duration(a) std::chrono::duration_cast<std::chrono::milliseconds>(a).count() |
#define | timeNow() std::chrono::high_resolution_clock::now() |
#define | since(a) duration(timeNow() - a) |
#define | TRACE(name, function_call) TimeVar STRCAT(t, __LINE__) = timeNow(); function_call printf("%s : %ldms\n", name, since(STRCAT(t, __LINE__))); |
Typedefs | |
typedef std::chrono::high_resolution_clock::time_point | TimeVar |
#define timeNow | ( | ) | std::chrono::high_resolution_clock::now() |