Why: Time#

static inline void Why::sleep_milli(unsigned int milli)#

Delay execution for n milliseconds. This is not a busy wait - the current thread is unscheduled, and woken up after that period. Using msleep() in interrupt service routines is undefined.

static inline void Why::sleep(const TimeSpec &duration)#

Delay execution for the specified time period. This is not a busy wait - the current thread is unscheduled, and woken up after that period. Using sleep() in interrupt service routines is undefined.

static inline void Why::busywait_milli(unsigned int milli)#

Delay execution for n milliseconds, by entering a calibrated busy loop.

static inline void Why::busywait(const TimeSpec &duration)#

Delay execution for the specified time period, by entering a calibrated busy loop.

static inline void Why::pause()#

Put the current thread to sleep forever. Using pause() in interrupt service routines is undefined.

static inline TimeSpec Why::now_monotonic()#

Nanoseconds since some unspecified time during system initialization.