How to count seconds correctly?
Posted: Wed May 27, 2015 2:07 pm
Hello,
did someone try to use system_get_rtc_time() and system_rtc_clock_cali_proc() to calculate time?
On my chip system_rtc_clock_cali_proc() returns random value in a range between 23500 and 24000, while system_get_rtc_time() is pretty accurate and looks perfectly linear.
so the system_rtc_clock_cali_proc() does not look like a good candidate
did someone try to use system_get_rtc_time() and system_rtc_clock_cali_proc() to calculate time?
3.2.13.
system_get_rtc_time Function:
Get RTC time, count by RTC clock period.
Example:
If system_get_rtc_time returns 10 (means 10 RTC cycles),
system_rtc_clock_cali_proc returns 5 (means 5us per RTC cycle),
then real time is 10 x 5 = 50 us
On my chip system_rtc_clock_cali_proc() returns random value in a range between 23500 and 24000, while system_get_rtc_time() is pretty accurate and looks perfectly linear.
so the system_rtc_clock_cali_proc() does not look like a good candidate