linux下精肯定時/控速的方法

struct timespec begin; unsigned long interval = xxxx;//nS unsigned long long ns; clock_gettime(CLOCK_MONOTONIC, &begin); while(1) { ..... ns = begin.tv_nsec; ns += interval; begin.tv_s
相關文章
相關標籤/搜索