在构建配置里面添加_POSIX_C_SOURCE=1 参考论坛:RT-Thread-error: unknown type name 'clock_t'RT-Thread问答社区 - RT-Thread