Fix issue where clock time was negative
Fix issue where clock time was negative

Safeguard elapsed and time variables with max checks.

luanlv/lila,arex1337/lila,luanlv/lila,luanlv/lila,luanlv/lila,arex1337/lila,arex1337/lila,luanlv/lila,luanlv/lila,arex1337/lila,luanlv/lila,arex1337/lila,arex1337/lila,arex1337/lila