Thread 中讨论的其他器件:SYSBIOS
工具/软件:TI-RTOS
我的板是 EVMam5728、CCS 是 V6.13、SDK 是1_0_4
现在,我只 需按照 帮助就可以使用“秒”:
#include
#include
time_t;
struct TM *LTM;
char *curTime;
seconds_set (STARTTIME);
t = time (NULL);
LTM = localtime (&t);
curTime = asctime (LTM);
System_printf ("time (GMT):%s\n"、curTime);
我可以得到时间、但它将比实时快大约2秒。
为什么是我? 我应该 如何解决它?