aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/time_provider/time_provider.cpp
diff options
context:
space:
mode:
authorvvvv <vvvv@yandex-team.ru>2022-02-10 16:46:34 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:34 +0300
commitad94e93a059747f4fc3d7add88d1a83daf40b733 (patch)
tree731d57e580bd143e1136e7747f13b26e6bac95d0 /library/cpp/time_provider/time_provider.cpp
parent298c6da79f1d8f35089a67f463f0b541bec36d9b (diff)
downloadydb-ad94e93a059747f4fc3d7add88d1a83daf40b733.tar.gz
Restoring authorship annotation for <vvvv@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/time_provider/time_provider.cpp')
-rw-r--r--library/cpp/time_provider/time_provider.cpp60
1 files changed, 30 insertions, 30 deletions
diff --git a/library/cpp/time_provider/time_provider.cpp b/library/cpp/time_provider/time_provider.cpp
index 6c1ba8e07c..c3181856f8 100644
--- a/library/cpp/time_provider/time_provider.cpp
+++ b/library/cpp/time_provider/time_provider.cpp
@@ -1,30 +1,30 @@
-#include "time_provider.h"
-
-class TDefaultTimeProvider: public ITimeProvider {
-public:
- TInstant Now() override {
- return TInstant::Now();
- }
-};
-
-class TDeterministicTimeProvider: public ITimeProvider {
-public:
- TDeterministicTimeProvider(ui64 seed) {
- Value = TInstant::Seconds(seed);
- }
-
- TInstant Now() override {
- return Value;
- }
-
-private:
- TInstant Value;
-};
-
-TIntrusivePtr<ITimeProvider> CreateDefaultTimeProvider() {
- return TIntrusivePtr<ITimeProvider>(new TDefaultTimeProvider());
-}
-
-TIntrusivePtr<ITimeProvider> CreateDeterministicTimeProvider(ui64 seed) {
- return TIntrusivePtr<ITimeProvider>(new TDeterministicTimeProvider(seed));
-}
+#include "time_provider.h"
+
+class TDefaultTimeProvider: public ITimeProvider {
+public:
+ TInstant Now() override {
+ return TInstant::Now();
+ }
+};
+
+class TDeterministicTimeProvider: public ITimeProvider {
+public:
+ TDeterministicTimeProvider(ui64 seed) {
+ Value = TInstant::Seconds(seed);
+ }
+
+ TInstant Now() override {
+ return Value;
+ }
+
+private:
+ TInstant Value;
+};
+
+TIntrusivePtr<ITimeProvider> CreateDefaultTimeProvider() {
+ return TIntrusivePtr<ITimeProvider>(new TDefaultTimeProvider());
+}
+
+TIntrusivePtr<ITimeProvider> CreateDeterministicTimeProvider(ui64 seed) {
+ return TIntrusivePtr<ITimeProvider>(new TDeterministicTimeProvider(seed));
+}