execute function in C++ after a delay without using sleep -
is there simple way of making happen after specific delay in c++? in python, utilize frame.after(ms,myfunction) nice , easy - seems far trickier problem in c++! has been suggested utilize sleep(), unfortunately doesn't work writing mod half-life 2 , if utilize sleep whole game hangs x seconds rather calling event after x seconds. there way phone call function after specific delay without using sleep?
why not using thread timer? check site: http://codereview.stackexchange.com/questions/40915/simple-multithread-timer
c++ delay delayed-execution
No comments:
Post a Comment