c++ - Sleep for milliseconds - Stack Overflow

c++ - Sleep for milliseconds - Stack Overflow

瀏覽:974
日期:2024-05-13
I know the POSIX sleep(x) function makes the program sleep for x seconds. Is there a function to make the program sleep for x milliseconds in C++? ... Why don't use time.h library? Runs on Windows and POSIX systems: #include #include...看更多