0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-25 23:14:13 +01:00

ircd::util: Use a long double nanoseconds template rep.

This commit is contained in:
Jason Volk 2019-01-09 17:05:58 -08:00
parent d3adde8ef4
commit 067a2f8651

View file

@ -62,6 +62,8 @@ ircd::util::pretty(const mutable_buffer &out,
const duration<rep, period> &d,
const uint &fmt)
{
const auto &ns(duration_cast<nanoseconds>(d));
using nanoseconds_ld = duration<long double, nanoseconds::period>;
const auto &ns(duration_cast<nanoseconds_ld>(d));
return pretty_nanoseconds(out, ns.count(), fmt);
}