Skip to content
Snippets Groups Projects
Commit 611bd468 authored by Gregory Nutt's avatar Gregory Nutt
Browse files

Update some comments

parent d5df3368
Branches
Tags
No related merge requests found
......@@ -319,6 +319,8 @@ int cmd_time(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
struct timespec end;
struct timespec diff;
/* Get and print the elapsed time */
ret = clock_gettime(TIME_CLOCK, &end);
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_redirect = redirsave;
return ret;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment