durScale

Multiply a duration by a floating-point number.

Duration
durScale
(
F
)
(
Duration d
,
F f
)
if (
is(F : real)
)

Examples

import core.time : seconds, msecs;
assert(durScale(1.seconds, 1.5) == 1500.msecs);

Meta