mirror of
https://github.com/google/benchmark.git
synced 2025-02-06 01:00:17 +08:00
Force static initialization of walltime.
This commit is contained in:
parent
8cf7b18ae4
commit
e60561a779
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user