网友收藏clockid_t与clock_gettime 函数-CSDN博客clockid_tkernel的time基本类型:1) system timeA monotonically increasing value that represents the amount of time the system has been running. 单调增长的系统运行时间, 可以通过time source, xtime及wall_to_monotonic计算出来._clockid_t... 2023-10-13 08:31 评论 0 阅读 阅读全文
网友收藏int pthread_getcpuclockid(pthread_t thread, clockid_t *clock_id);-CSDN博客#include <pthread.h>#include <stdio.h>#include <time.h>pthread_cond_t cond2;pthread_condattr_t cond2attr;#define test(clk_id) {\ printf("%s:%d\n", #clk_id, clk_id);\}static void print_clock(char *msg, clockid_t cid){ ...... 2023-10-13 08:30 评论 0 阅读 阅读全文