c++counter or timer一問

請問c++有無一個counter or timer function
可以time 如5秒後然後作出一個動作??
但timer or counter期間其他program繼續運行不受影響

OS specific, you need to register a callback with the OS.  Or, if you want to just busy loop, you can use time() function.

TOP

開一條thread sleep 5 秒再做野

TOP