xiaoxiang781216 commented on code in PR #17326:
URL: https://github.com/apache/nuttx/pull/17326#discussion_r2522839721


##########
arch/arm/src/lc823450/lc823450_timer.c:
##########
@@ -705,7 +705,7 @@ int up_rtc_gettime(struct timespec *tp)
 
   /* Get the elapsed time */
 
-  elapsed = NSEC_PER_TICK * (uint64_t)g_system_ticks;
+  elapsed = NSEC_PER_TICK * (uint64_t)clock_get_sched_ticks();

Review Comment:
   why not  change this to clock_systime_ticks? so we don't need add a new api



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to