Change time variable to be in hardware. Still with systick.