Commit c0755c42 by Eric Fiselier

actually add new test

parent 725f1f06
#include <cstddef>
#include "benchmark/benchmark_api.h"
#include "../src/walltime.h"
void BM_CPUTimeNow(benchmark::State& state) {
while (state.KeepRunning()) {
benchmark::WallTime volatile now = benchmark::walltime::CPUWalltimeNow();
((void)now);
}
}
BENCHMARK(BM_CPUTimeNow);
void BM_ChronoTimeNow(benchmark::State& state) {
while (state.KeepRunning()) {
benchmark::WallTime volatile now = benchmark::walltime::ChronoWalltimeNow();
((void)now);
}
}
BENCHMARK(BM_ChronoTimeNow);
BENCHMARK_MAIN()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment