e.g. for linux: https://www.kernel.org/doc/Documentation/timers/timers-howto...
ATOMIC CONTEXT: You must use the delay family of functions. These functions use the jiffie estimation of clock speed and will busy wait for enough loop cycles to achieve the desired delay