//--------------------------------------------------------- // signal-wait-gb.cc //--------------------------------------------------------- #include "signal-wait.h" #include #include //--------------------------------------------------------- template void test(benchmark::State &state) { for (auto _: state) f(); } //--------------------------------------------------------- #ifdef __has_include #if __has_include() BENCHMARK(test)->UseRealTime()->Unit(benchmark::kMicrosecond); #endif // __has_include #endif // __has_include() #ifdef __has_include #if __has_include() BENCHMARK(test)->UseRealTime()->Unit(benchmark::kMicrosecond); #endif // __has_include #endif // __has_include() BENCHMARK(test)->UseRealTime()->Unit(benchmark::kMicrosecond); BENCHMARK(test)->UseRealTime()->Unit(benchmark::kMicrosecond); BENCHMARK_MAIN(); //---------------------------------------------------------