to

fnT to(string units, T, D)(D td) if (is(immutable D == immutable TickDuration) && (units == "seconds" || units == "msecs" || units == "usecs" || units == "hnsecs" || units == "nsecs")) @safe pure nothrow @nogc
deprecated TickDuration has been deprecated, please use Duration or MonoTime instead
TickDuration is DEPRECATED

Converts a TickDuration to the given units as either an integral value or a floating point value.

Parameters

unitsThe units to convert to. Accepts "seconds" and smaller only.
TThe type to convert to (either an integral type or a floating point type).
tdThe TickDuration to convert