NSH: Add a time command that can be used to time other commands

This commit is contained in:
Gregory Nutt
2015-12-31 09:16:38 -06:00
parent d5f8008931
commit f09b7e400f
6 changed files with 105 additions and 10 deletions

View File

@@ -934,6 +934,9 @@ void nsh_usbtrace(void);
#ifndef CONFIG_NSH_DISABLE_FREE
int cmd_free(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv);
#endif
#ifndef CONFIG_NSH_DISABLE_TIME
int cmd_time(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv);
#endif
#ifndef CONFIG_NSH_DISABLE_PS
int cmd_ps(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv);
#endif