gustavonihei commented on a change in pull request #4779: URL: https://github.com/apache/incubator-nuttx/pull/4779#discussion_r742764962
########## File path: include/nuttx/clock.h ########## @@ -394,6 +394,49 @@ void clock_resynchronize(FAR struct timespec *rtc_diff); clock_t clock_systime_ticks(void); #endif +/**************************************************************************** + * Name: clock_time2ticks + * + * Description: + * Return the given struct timespec as systime ticks + * + * NOTE: This is an internal OS interface and should not be called from + * application code. + * + * Input Parameters: + * reltime - Time presented as struct timespec Review comment: ```suggestion * Input Parameters: * reltime - Time presented as struct timespec * * Output Parameters: * ticks - Pointer to receive the time value presented as systime ticks ``` It might be interesting to also add the documentation for the output parameters. -- 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: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org