Duration.opCast

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 std.conv.to, e.g.: duration.to!TickDuration()

  1. TickDuration opCast()
    struct Duration
    @safe pure
    opCast
    const nothrow @nogc
    (
    T
    )
    ()
    if (
    is(_Unqual!T == TickDuration)
    )
  2. bool opCast()
Suggestion Box / Bug Report