ARM/8051/Keil C/nRF/藍芽 外包接案 論文專題代做代寫
#include <unistd.h>
usleep(100000); // 延遲 100,000 微秒 = 100 毫秒
---
#include <time.h>
struct timespec ts;
ts.tv_sec = 0;
ts.tv_nsec = 100 * 1000000L; // 100 毫秒
nanosleep(&ts, NULL);
沒有留言:
張貼留言