This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/AM3358: Sleep task delay not accurate

Part Number: AM3358

Tool/software: TI-RTOS

Call Task_sleep as below: 

SecondsClock_getTime(&ts1);

Task_sleep(1000);

SecondsClock_getTime(&ts);

UART_printf(":diff =%d\n",(int)((ts.secs-ts1.secs)*1000 + ts.nsecs/1000000- ts1.nsecs/1000000));

Power cycle system, each time get different result, below are result of 4 power cycle:

:diffms =483

:diffms =483

:diffms =482

 

:diffms =1399

:diffms =1399

:diffms =1399

 

:diffms =570

:diffms =570

:diffms =571

 

:diffms =994

:diffms =993

:diffms =993