Junbo-Zheng opened a new pull request, #1319:
URL: https://github.com/apache/incubator-nuttx-apps/pull/1319

   ## Summary
   
   support uptime command for NuttX
   
   Signed-off-by: Junbo Zheng <[email protected]>
   
   ## Impact
   
   N/A
   
   ## Testing
   
   run uptime command on sim:
   nsh>
   nsh>
   nsh> uptime
   19:35:01 up  1:40, load average: 0.00, 0.00, 0.00
   nsh>
   nsh>
   nsh> uptime -s
   2022-09-16 17:54:26
   nsh>
   nsh>
   nsh> uptime -p
   up 1 hour, 40 minutes
   nsh>
   nsh>
   nsh> uptime -h
   Usage:
   uptime [options]
   Options:
   -p, show uptime in pretty format
   -h, display this help and exit
   -s, system up since
   nsh>
   nsh>
   nsh> uptime -abc
   uptime: invalid option -- -abc
   Usage:
   uptime [options]
   Options:
   -p, show uptime in pretty format
   -h, display this help and exit
   -s, system up since
   nsh>
   nsh>
   nsh> date
   Fri, Sep 16 19:35:18 2022
   nsh>
   nsh>
   


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