wangchdo commented on PR #17192:
URL: https://github.com/apache/nuttx/pull/17192#issuecomment-3396711736

   > @wangchdo should we update CLOCK_MONOTONIC or CLOCK_BOOTTIME too?
   
   Hi @xiaoxiang781216,
   
   I'm not sure I fully understood your question, but after checking the NuttX 
kernel implementation, I found the following:
   
   The clock functions related to CLOCK_MONOTONIC and CLOCK_BOOTTIME are likely 
nxclock_gettime().
   nxclock_gettime() calls clock_systime_timespec(), and within 
clock_systime_timespec() there is a branch that retrieves ticks from 
g_system_ticks.
   This g_system_ticks variable is updated by my newly added function 
clock_increase_sched_ticks().
   
   Therefore, I believe we don’t need to make any additional updates related to 
CLOCK_MONOTONIC or CLOCK_BOOTTIME.
   
   Please let me know if I’m missing something. Thanks!
   
   
   


-- 
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