Implement system clock

Currently only loops 5 times as a test.
Need to set up the irq registers.