Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sleep ¶
Sleep for a very precise short duration by busy-waiting for the given time. This is not an efficient way to sleep: it will needlessly burn cycles while sleeping. But it is useful for sleeping for a very short duration, for example for bit-banged protocols.
Longer durations (longer than a few milliseconds) will be handled by calling time.Sleep instead.
This function should be called with a constant duration value, in which case the call will typically be fully inlined and only take up around nine instructions for the entire loop.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.