userver
C++ Async Framework
Documentation
API Groups
Namespaces
Reference
Class List
Class Index
File List
Macros
All
e
i
l
r
t
u
Functions
Macros
e
i
l
r
t
u
Examples
Toggle main menu visibility
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Concepts
Loading...
Searching...
No Matches
All results
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
Docs version:
v1.0
,
v2.0
,
trunk/develop
userver
utils
statistics
common.hpp
Generated on Thu Mar 13 2025 18:42:03 for userver by
Doxygen
1.10.0