啊
#define print_line(fmt,...) do{\
struct timespec _t; clock_gettime(CLOCK_MONOTONIC, &_t);\
printf("%ld.%ld %s:%d: " fmt "\n", _t.tv_sec + _t.tv_nsec / 1000000, __func__, __LINE__, ##__VA_ARGS__);\
}while(0)
交流
struct timespec timeval;
print_line(timeval)
收到错误:error: expected ')' before .