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>;
52 std::string_view name);
56 explicit ScopeTime(impl::TimeStorage& ts);
57 ScopeTime(impl::TimeStorage& ts, std::string scope_name);
68 Duration
Reset(std::string scope_name);
102 const std::string& CurrentScope()
const {
return scope_name_; }
105 impl::TimeStorage& ts_;
106 std::chrono::steady_clock::time_point start_;
107 std::string scope_name_;