blob: 7bfefa9906fc9b92d3119bb0fec2e7e368acb224 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "clock.h"
#include <cassert>
namespace vespalib {
Clock::Clock(const std::atomic<steady_time> & source) noexcept
: _timeNS(source)
{
static_assert(std::atomic<steady_time>::is_always_lock_free);
}
Clock::~Clock() = default;
}
|