userver
C++ Async Framework
Toggle main menu visibility
Loading...
Searching...
No Matches
wall_coarse_clock.hpp
Go to the documentation of this file.
1
#pragma once
2
5
6
#include <chrono>
7
8
USERVER_NAMESPACE_BEGIN
9
10
namespace
utils::datetime
{
11
16
struct
WallCoarseClock
final {
17
// Duration matches system clock, but it is updated once in a few milliseconds
18
using
duration = std::chrono::system_clock::duration;
19
using
rep = duration::rep;
20
using
period = duration::period;
21
using
time_point = std::chrono::system_clock::time_point;
22
23
static
constexpr
bool
is_steady =
false
;
24
25
static
time_point now()
noexcept
;
26
static
duration resolution()
noexcept
;
27
};
28
29
}
// namespace utils::datetime
30
31
USERVER_NAMESPACE_END
userver
utils
datetime
wall_coarse_clock.hpp
Generated on
for userver by
Doxygen
1.17.0