time command [argument ...]
The time command executes and times a command. After the command finishes, time writes the total time elapsed. Times are reported in seconds.
This command returns 0 on success and non-zero if an error is encountered.
None.
The following is an example of how to use time
:
SHLL [/] $ time cp -r /nfs/directory /c
This command is included in the default shell command set. When
building a custom command set, define
CONFIGURE_SHELL_COMMAND_TIME
to have this command included.
This command can be excluded from the shell command set by
defining CONFIGURE_SHELL_NO_COMMAND_TIME
when all
shell commands have been configured.
The time
is implemented by a C language function
which has the following prototype:
int rtems_shell_rtems_main_time( int argc, char **argv );
The configuration structure for the time
has the
following prototype:
extern rtems_shell_cmd_t rtems_shell_TIME_Command;
Copyright © 1988-2008 OAR Corporation