aboutsummaryrefslogtreecommitdiffstats
path: root/messagebus/src/vespa/messagebus/steadytimer.h
blob: 8321e5aee5db5809ba7860eeebe8bb9daf0b78df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

#include "itimer.h"

namespace mbus {

/**
 * This is the implementation of the {@link Timer} interface that all time-based
 * constructs in message bus use by default. The only reason for replacing this
 * is for writing unit tests.
 */
class SteadyTimer : public ITimer {
public:
    //TODO Return chrono::duration
    uint64_t getMilliTime() const override;
};

} // namespace mbus