fracTotal

Like d.total!units, but returns fractional parts as well.

T
fracTotal
(
string units
T = real
)
(
Duration d
)

Examples

import core.time : seconds, msecs;
assert(1500.msecs.fracTotal!"seconds" == 1.5);

Meta