anchao commented on code in PR #13293:
URL: https://github.com/apache/nuttx/pull/13293#discussion_r1756075945


##########
include/nuttx/clock.h:
##########
@@ -722,6 +779,29 @@ void perf_convert(clock_t elapsed, FAR struct timespec 
*ts);
 
 unsigned long perf_getfreq(void);
 
+/****************************************************************************
+ * Name: nxclock_settime
+ *
+ * Description:
+ *   Clock Functions based on POSIX APIs
+ *
+ *   CLOCK_REALTIME - POSIX demands this to be present. This is the wall
+ *   time clock.
+ *
+ ****************************************************************************/
+
+void nxclock_settime(clockid_t clock_id, FAR const struct timespec *tp);
+
+/****************************************************************************
+ * Name: nxclock_gettime
+ *
+ * Description:
+ *   Get the current value of the specified time clock.
+ *
+ ****************************************************************************/
+
+void nxclock_gettime(clockid_t clock_id, struct timespec *tp);

Review Comment:
   ```suggestion
   void nxclock_gettime(clockid_t clock_id, FAR struct timespec *tp);
   ```



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