aboutsummaryrefslogtreecommitdiffstats
path: root/storage/src/vespa/storageframework/defaultimplementation/clock/realclock.cpp
blob: 9beb55bdef34fa39153a37a7e2aeb6556280e949 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include "realclock.h"
#include <sys/time.h>

namespace storage::framework::defaultimplementation {

vespalib::steady_time
RealClock::getMonotonicTime() const {
    return vespalib::steady_clock::now();
}

vespalib::system_time
RealClock::getSystemTime() const {
    return vespalib::system_clock::now();
}

}