Clock class changes

I changed getTime to just sent the difference of the current system time
and the beginning time and also made a tick function that checks if a
tick has passed. It will be used later to know i its time to update