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

   > > > @wangchdo should we update CLOCK_MONOTONIC or CLOCK_BOOTTIME too?
   > > 
   > > 
   > > I added update for clock_systime_timespec() and clock_resynchronize() 
please check.
   > 
   > from https://man7.org/linux/man-pages/man3/clock_gettime.3.html:
   > 
   > ```
   > CLOCK_BOOTTIME (since Linux 2.6.39; Linux-specific)
   >               A nonsettable system-wide clock that is identical to
   >               CLOCK_MONOTONIC, except that it also includes any time that
   >               the system is suspended.  This allows applications to get a
   >               suspend-aware monotonic clock without having to deal with the
   >               complications of CLOCK_REALTIME, which may have discontinu‐
   >               ities if the time is changed using 
[settimeofday(2)](https://man7.org/linux/man-pages/man2/settimeofday.2.html) or 
similar.
   > ```
   > 
   > CLOCK_BOOTTIME contain the suspend time, but CLOCK_MONOTONIC not. Since 
you add the new api to distinguish these two cases, we could implement 
CLOCK_MONOTONIC better now.
   
   Hi @xiaoxiang781216  
   
   I uploaded a new commit to improve CLOCK_MONOTONIC, please help to check.


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