Update some comments

This commit is contained in:
Gregory Nutt 2016-01-04 12:36:38 -06:00
parent d5df336821
commit 611bd4684f

View File

@ -319,6 +319,8 @@ int cmd_time(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
struct timespec end; struct timespec end;
struct timespec diff; struct timespec diff;
/* Get and print the elapsed time */
ret = clock_gettime(TIME_CLOCK, &end); ret = clock_gettime(TIME_CLOCK, &end);
if (ret < 0) if (ret < 0)
{ {
@ -340,6 +342,8 @@ int cmd_time(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
} }
} }
/* Restore state */
vtbl->np.np_bg = bgsave; vtbl->np.np_bg = bgsave;
vtbl->np.np_redirect = redirsave; vtbl->np.np_redirect = redirsave;
return ret; return ret;