diff options
Diffstat (limited to 'storage/src/vespa/storageframework/defaultimplementation/clock/realclock.h')
-rw-r--r-- | storage/src/vespa/storageframework/defaultimplementation/clock/realclock.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/storage/src/vespa/storageframework/defaultimplementation/clock/realclock.h b/storage/src/vespa/storageframework/defaultimplementation/clock/realclock.h new file mode 100644 index 00000000000..a4b80a990c9 --- /dev/null +++ b/storage/src/vespa/storageframework/defaultimplementation/clock/realclock.h @@ -0,0 +1,23 @@ +// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +/** + * \class storage::RealClock + * \ingroup frameworkimpl + * + * \brief Implements a class for calculating current time. + * + * Real implementation for gathering all clock information used in application. + */ +#pragma once + +#include <vespa/storageframework/generic/clock/clock.h> + +namespace storage::framework::defaultimplementation { + +struct RealClock : public Clock { + MicroSecTime getTimeInMicros() const override; + MilliSecTime getTimeInMillis() const override; + SecondTime getTimeInSeconds() const override; + MonotonicTimePoint getMonotonicTime() const override; +}; + +} |