TickDuration.from

This allows you to construct a TickDuration from the given time units with the given length.

struct TickDuration
deprecated static @safe pure nothrow @nogc
from
(
string units
)
(
long length
)
if (
units == "seconds" ||
units == "msecs"
||
units == "usecs"
||
units == "hnsecs"
||
units == "nsecs"
)

Parameters

units

The time units of the TickDuration (e.g. "msecs").

length long

The number of units in the TickDuration.

Meta