10#include <userver/logging/log_extra.hpp>
12USERVER_NAMESPACE_BEGIN
27 using Duration = std::chrono::nanoseconds;
28 using DurationMillis = std::chrono::duration<
double, std::milli>;
44 explicit ScopeTime(impl::TimeStorage& ts);
45 ScopeTime(impl::TimeStorage& ts, std::string scope_name);
56 Duration
Reset(std::string scope_name);
90 const std::string& CurrentScope()
const {
return scope_name_; }
93 impl::TimeStorage& ts_;
94 std::chrono::steady_clock::time_point start_;
95 std::string scope_name_;