Created
October 26, 2012 01:00
-
-
Save julibachiller/3956398 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
void sleep (float nbr_seconds) | |
{ | |
clock_t goal; | |
goal = (nbr_seconds * CLOCKS_PER_SEC) + clock(); | |
while (goal > clock()) | |
{ | |
; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment