userver
C++ Async Framework
Loading...
Searching...
No Matches
common.hpp
1
#
pragma
once
2
3
#
include
<
chrono
>
4
#
include
<
string
>
5
6
USERVER_NAMESPACE_BEGIN
7
8
namespace
utils
::statistics {
9
10
/* Graphite stores metrics once per minute,
11
* so we have to store at least 1min */
12
constexpr
auto
kDefaultMaxPeriod = std::chrono::seconds(60);
13
14
constexpr
auto
kDefaultEpochDuration = std::chrono::seconds(5);
15
16
std::string DurationToString(std::chrono::seconds duration);
17
18
}
// namespace utils::statistics
19
20
USERVER_NAMESPACE_END
userver
utils
statistics
common.hpp
Generated on Tue Nov 19 2024 11:33:41 for userver by
Doxygen
1.10.0