Commit e60561a7 by Eric Fiselier

Force static initialization of walltime.

parent 8cf7b18a
......@@ -1280,6 +1280,9 @@ void RunSpecifiedBenchmarks(const BenchmarkReporter* reporter /*= nullptr*/) {
void Initialize(int* argc, const char** argv) {
internal::ParseCommandLineFlags(argc, argv);
internal::SetLogLevel(FLAGS_v);
// Ensure walltime is initialized by a single thread by forcing the
// initialization.
walltime::Now();
internal::Benchmark::MeasureOverhead();
}
......
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