normalizedInterval

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

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

Parameters

valueCaller-provided interval in milliseconds.

Returns

0 when value is negative, otherwise value unchanged.