TimeException if an attempt to divide by 0 is made.TickDuration opOpAssign(string op)(TickDuration rhs) if (op == "+" || op == "-") ref @safe pure nothrow @nogcAdds or subtracts two TickDurations as well as assigning the result to this TickDuration.
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. |
void opOpAssign(string op, T)(T value) if (op == "*" &&
(__traits(isIntegral, T) || __traits(isFloating, T))) @safe 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 duration. |
void opOpAssign(string op, T)(T value) if (op == "/" &&
(__traits(isIntegral, T) || __traits(isFloating, T))) @safe 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.