]> Kevux Git Server - fll/commit
Update: Rewrite timing logic in controller.
authorKevin Day <Kevin@kevux.org>
Sun, 7 Jul 2024 04:35:59 +0000 (23:35 -0500)
committerKevin Day <Kevin@kevux.org>
Sun, 7 Jul 2024 04:35:59 +0000 (23:35 -0500)
commit9b21b888e52d9a7268c231bc0d520ec0be9bfcb8
treec08325701037e1f19cc4af93c10f0c4dc0d2fd6c
parent0e1b2986884fed5c886e65095c4e73114582ac5b
Update: Rewrite timing logic in controller.

Check if both numbers added together are greater than or equal to half a second.
If they are, then an overflow will happen.
Subtract the half seconds instead of handling an overflow.

This does not handle the case where the milliseconds or nanoseconds are greater than one second.
This only handles the cases where they are greater than half a second.
level_3/controller/c/controller/private-controller.c