دلیل وجود این کدها چیه؟

if CurTicks >= LastTicks then
Elapsed := CurTicks - LastTicks
else
Elapsed := ($FFFFFFFF - LastTicks) + CurTicks;