TickDuration.from

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

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

Parameters

unitsThe time units of the TickDuration (e.g. "msecs").
lengthThe number of units in the TickDuration.