9#include <userver/formats/json/string_builder_fwd.hpp>
10#include <userver/formats/json/value_builder.hpp>
12USERVER_NAMESPACE_BEGIN
18template <
class Rep,
class Period>
19static json::Value Serialize(std::chrono::duration<Rep, Period> duration,
20 To<formats::
json::Value>) {
26template <
class Rep,
class Period>
27static void WriteToStream(std::chrono::duration<Rep, Period> duration,
28 formats::
json::StringBuilder& sw) {
29 WriteToStream(duration.count(), sw);