Changed timer to use CLOCK_REALTIME instead of CLOCK_CPUTIME_ID after getting advice from Glen
Seems to be working fine and solves the problem of what happens if the process calls sleep :/ Thanks to Glen for his help :3
Fixed a potential bug that Glen spotted where the handleGameUpdateEvent
was making sure it had 10 or less entities but the maximum entity count for a frame was 8.
So now it is set to 8. Need to change the hardcoded 8 to a const variable in the header or something