Created
February 17, 2017 13:10
-
-
Save jeserkin/b75851947ac097d8613e5bc536f7700b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//sleep : unit : (delay : float) | |
if (unit == seconds) | |
time_nanosleep(dealy) | |
else if ( unit == milliseconds ) | |
seconds = extract from dealy | |
nanoSeconds = extract from dealy | |
or | |
nanoSeconds = extract from dealy | |
time_nanosleep(seconds, nanoSeconds) or time_nanosleep(0, nanoSeconds) | |
// etc.. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment