aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/vespa/vespalib/util/fake_doom.cpp
blob: 51318db135ca76b6b7200fba3a165dda766177da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include "fake_doom.h"

namespace vespalib {

FakeDoom::FakeDoom(steady_time::duration time_to_doom)
    : _time(steady_clock::now()),
      _clock(_time),
      _doom(_clock, _clock.getTimeNS() + time_to_doom)
{
}

FakeDoom::~FakeDoom() = default;

}