Quote:
Originally Posted by Colby Skeggs
Well, at the very minimum two ways to interact with time are required: getting and sleeping (you cannot reasonably implement either in terms of the other)
|
Prepare to have your mind blown
Code:
void sleep(float length){
float start=get_time();
while(get_time()<start+length);
}