Duration.opCast

TickDuration opCast(T)() if (is(immutable T == immutable TickDuration)) const nothrow @nogc
deprecated

TickDuration is Deprecated

Returns a TickDuration with the same number of hnsecs as this Duration. Note that the conventional way to convert between Duration and TickDuration is using to, e.g.: duration.to!TickDuration()

bool opCast(T : bool)() const nothrow @nogc

Allow Duration to be used as a boolean.

Returns

true if this duration is non-zero.
Duration opCast(T)() if (is(immutable T == immutable Duration)) const nothrow @nogc
No documentation available for this declaration.