switched to using timer0. set timer 0 to increment on 1us timing. added function to get current time from timer 0 as well as adapted usleep to work with it without resetting it