normalizedDelay

fnlong normalizedDelay(long value) pure @safe nothrow @nogc

Clamp a requested timer delay to the non-negative range accepted by the loop.

Parameters

valueCaller-provided delay in milliseconds.

Returns

0 when value is negative, otherwise value unchanged.