Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
clock_gettime 是 POSIX 标准推荐的高精度时间获取函数,编译不过 。 #include <time.h>
struct timespec { time_t tv_sec; /* 秒 / long tv_nsec; / 纳秒,取值范围 0 ~ 999999999 */ }; int clock_gettime(clockid_t clk_id, struct timespec *tp);
代码中宏已打开 #define _GNU_SOURCE
编译不报错也没有意义啊
Frankie 想获取某段代码执行的时间,有能用的时间函数推荐吗?毫秒或者微妙级的。 gettimeofday()也无法使用 。 failed: Function not implemented 报这个错,云途环境不支持
us级可以用ptmr通道获取时间戳做差
快速上手云途开发生态
发帖前请查看
帮助改进和优化YT CONFIG TOOL,有机会抽取YTM32B1ME0 EVB哦...