11#include <userver/logging/log_extra.hpp>
13USERVER_NAMESPACE_BEGIN
28 using Duration = std::chrono::nanoseconds;
29 using DurationMillis = std::chrono::duration<
double, std::milli>;
59 explicit ScopeTime(impl::TimeStorage& ts);
60 ScopeTime(impl::TimeStorage& ts, std::string scope_name);
71 Duration
Reset(std::string scope_name);
105 const std::string& CurrentScope()
const {
return scope_name_; }
108 impl::TimeStorage& ts_;
109 std::chrono::steady_clock::time_point start_;
110 std::string scope_name_;