Force static initialization of walltime.

This commit is contained in:
Eric Fiselier 2015-03-09 14:56:47 -04:00
parent 8cf7b18ae4
commit e60561a779

View File

@ -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();
}