Sujet : [Visual C++] precision de Sleep |
BENB |
SoWhatIn22 a écrit a écrit :
>sleep() l'argument est donne en secondes normalement
euh, non. dans le MSDN:
-----------------
The Sleep function suspends the execution of the current thread for a specified interval. VOID Sleep(
DWORD dwMilliseconds // sleep time in milliseconds
);
-----------------
>C'est reproductible ?
sans pb. Je lance un thread qui ne fais que ca. Et il n'y a pas d'autre appli gourmande. Et la charge CPU est à zéro...
|
Pardon j'ai confondu Sleep et sleep...
Citation :
unsigned int sleep(unsigned int seconds);
DESCRIPTION
sleep() suspends the current process from execution for the number of
seconds specified by the argument.
|
|