Defines | |
#define | START_SECTION(name, weight) |
Start a new benchmark section. | |
#define | END_SECTION |
End of a benchmark section. | |
#define | STATUS(a) |
Status output. | |
#define | START_TIMER BENCHMARK::timer.start();\ |
Start the timer. | |
#define | STOP_TIMER BENCHMARK::timer.stop(); |
Stop the timer. | |
#define | START_BENCHMARK(class_name, overall_weight, version) |
Program body for the benchmark. | |
#define | END_BENCHMARK |
End of the test program. |
|
End of the test program.
|
|
Value: BENCHMARK::timer.stop();\ BENCHMARK::section_time = BENCHMARK::timer.getCPUTime() - BENCHMARK::section_time;\ if (BENCHMARK::verbose > 0)\ {\ std::cout << BENCHMARK::section_name << ": " \ << BENCHMARK::section_time << " s"\ << " (weight = " << BENCHMARK::section_weight << ")" << std::endl;\ }\ BENCHMARK::total_time += BENCHMARK::section_time * BENCHMARK::section_weight;\
|
|
Program body for the benchmark.
The parameter |
|
Value: BENCHMARK::section_time = BENCHMARK::timer.getCPUTime();\ BENCHMARK::section_name = #name;\ BENCHMARK::section_weight = weight; The argument weight determines the weighting factor of the section. |
|
Start the timer. This macro is used to determine the running time of a set of commands. It may be used in benchmarks and requires a prior invocation of the START_BENCHMARK macro. All commands that are between the START_TIMER and the STOP_TIMER command contribute to the overall running time of the benchmark. |
|
Value: if (BENCHMARK::verbose > 0)\ {\ std::cout << " status: " << a << std::endl;\ } Print debugging information if called with -v. |
|
Stop the timer. This macro is used to determine the running time of a set of commands. It may be used in benchmarks and requires a prior invocation of the START_BENCHMARK and START_TIMER macros. All commands that are between the START_TIMER and the STOP_TIMER command contribute to the overall running time of the benchmark. |