// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include "clock.h" #include #include #include namespace vespalib::metrics { // internal class SimpleTick : public Tick { private: std::mutex _lock; std::atomic _runFlag; std::condition_variable _cond; public: SimpleTick(); TimeStamp first() override; TimeStamp next(TimeStamp prev) override; void kill() override; bool alive() const override; }; } // namespace vespalib::metrics