// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include "tagger.h" #include "request.h" namespace vbench { /** * Sets the start time of requests based on a given qps. **/ class QpsTagger : public Tagger { private: double _invQps; size_t _count; Handler &_next; public: QpsTagger(double qps, Handler &next); void handle(Request::UP request) override; }; } // namespace vbench