userver
C++ Async Framework
Loading...
Searching...
No Matches
microseconds.hpp
1
#
pragma
once
2
3
#
include
<
chrono
>
4
5
#
include
<
userver
/
chaotic
/
convert
.
hpp
>
6
#
include
<
userver
/
utils
/
numeric_cast
.
hpp
>
7
8
USERVER_NAMESPACE_BEGIN
9
10
namespace
chaotic::convert {
11
12
template
<
typename
T>
13
T Convert(std::chrono::microseconds value, chaotic::convert::
To
<T>) {
14
return
utils::numeric_cast<T>(value.count());
15
}
16
17
}
// namespace chaotic::convert
18
19
USERVER_NAMESPACE_END
userver
chaotic
io
std
chrono
microseconds.hpp
Generated on Tue Nov 19 2024 11:25:51 for userver by
Doxygen
1.10.0