Page 1 of 1

Wait ndless

Unread postPosted: 19 Oct 2017, 18:57
by TheStaticTurtle
Bonjour,

Je cherche a utiliser un fonction wait ou équivalent pour attendre un temps précis en ms. Cependat je ne la trouve pas.
PS: Mon programme est en c++

Re: Wait ndless

Unread postPosted: 20 Oct 2017, 00:47
by Ti64CLi++
Dans la nSDL, tu as une function SDL_Delay, qui prend en argument le nombre de milliseconde a attendre. Apres, c'est dommage d'utiliser la SDL pour ca, mais si ca peut server ;)

Re: Wait ndless

Unread postPosted: 20 Oct 2017, 09:44
by critor
Sans aller chercher la SDL, il y a tout simplement sleep(int) qui vient avec os.h il me semble.