+ 10
C++ equivalent of setInterval
Hello, I am looking for a c++ equivalent of the following js function: setInterval(function(){ //blablabla },1000/someFPSvalue);
8 ответов
+ 9
Thanks a ton for your replies guys!! They had been really helpful <3
+ 8
Thank you, I will look at it as soon as possible.
A more specific answer from anyone else would be highly appreciated still! :')
+ 8
omfg that's amazing thank you <3
+ 6
pretty sure you will have to write this yourself.
something like this should help get u started
https://code.sololearn.com/c2FByP9IIsbx/?ref=app
+ 6
https://stackoverflow.com/questions/33234403/using-setinterval-in-c
+ 3
I made this
https://code.sololearn.com/cpSsIuelvd82/?ref=app
I made an array of pointers to functions that will switch the functions which will not be repeated
A for loop with
Another delay for loop
A call to a function of the array
A call to function that will be repeated always
+ 2
Hope you still need it now
https://code.sololearn.com/cfw8dccPGp9U/?ref=app
0
https://stackoverflow.com/questions/33234403/using-setinterval-in-c