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

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


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