Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

how to sleep in C

void sleep(unsigned int mseconds)
{
    clock_t goal = mseconds + clock();
    while (goal > clock())
        ;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sleep #C
ADD COMMENT
Topic
Name
9+8 =