aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/actors/core/monotonic_provider.cpp
blob: fb3b656da69aaa50f053f7b3794d46fafb049061 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "monotonic_provider.h"

namespace NActors {

class TDefaultMonotonicTimeProvider : public IMonotonicTimeProvider {
public:
    TMonotonic Now() override {
        return TMonotonic::Now();
    }
};

TIntrusivePtr<IMonotonicTimeProvider> CreateDefaultMonotonicTimeProvider() {
    return TIntrusivePtr<IMonotonicTimeProvider>(new TDefaultMonotonicTimeProvider);
}

} // namespace NActors