a function that uses timer interrupts to sleep for a period of microseconds