Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要每秒或几毫秒的间隔执行一个循环和一个条件。我能做些什么来实现这一目标?
#include <unistd.h>
usleep for POSIX 平台(高精度睡眠)