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:
parent
d3adde8ef4
commit
067a2f8651
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue