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,
To<formats::
json::Value>) {
25template <
class Rep,
class Period>
26static void WriteToStream(std::chrono::duration<Rep, Period> duration, formats::
json::StringBuilder& sw) {
27 WriteToStream(duration.count(), sw);