TimeException if an attempt to divide by 0 is made.TickDuration opBinary(string op)(TickDuration rhs) if (op == "+" || op == "-") @safe const pure nothrow @nogcAdds or subtracts two TickDurations.
The legal types of arithmetic for TickDuration using this operator are
| TickDuration | + | TickDuration | --> | TickDuration |
| TickDuration | - | TickDuration | --> | TickDuration |
rhs | The TickDuration to add to or subtract from this TickDuration. |
TickDuration opBinary(string op, T)(T value) if (op == "*" &&
(__traits(isIntegral, T) || __traits(isFloating, T))) @safe const pure nothrow @nogcThe legal types of arithmetic for TickDuration using this operator overload are
| TickDuration | * | long | --> | TickDuration |
| TickDuration | * | floating point | --> | TickDuration |
value | The value to divide from this TickDuration. |
TickDuration opBinary(string op, T)(T value) if (op == "/" &&
(__traits(isIntegral, T) || __traits(isFloating, T))) @safe const pureThe legal types of arithmetic for TickDuration using this operator overload are
| TickDuration | / | long | --> | TickDuration |
| TickDuration | / | floating point | --> | TickDuration |
value | The value to divide from this TickDuration. |
TimeException if an attempt to divide by 0 is made.