blob: 4065fbaa87180d437c96af5d1de9f2a3c1258957 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/metrics/metrictimer.h>
namespace metrics {
MetricTimer::MetricTimer()
{
// Amusingly enough, steady_clock was not actually steady by default on
// GCC < 4.8.1, so add a bit of compile-time paranoia just to make sure.
static_assert(std::chrono::steady_clock::is_steady,
"Old/broken STL implementation; steady_clock not steady");
_startTime = std::chrono::steady_clock::now();
}
} // metrics
|