60 unsigned long elapsed;
69 rc =
execv ( argv[1], argv + 1 );
73 printf (
"%s: %d.%ds\n", argv[0],
74 ( decisecs / 10 ), ( decisecs % 10 ) );
static struct command_descriptor time_cmd
"time" command descriptor
struct arbelprm_rc_send_wqe rc
struct command time_command __command
"time" command
#define TICKS_PER_SEC
Number of ticks per second.
int printf(const char *fmt,...)
Write a formatted string to the console.
int parse_options(int argc, char **argv, struct command_descriptor *cmd, void *opts)
Parse command-line options.
uint32_t start
Starting offset.
static struct option_descriptor time_opts[]
"time" option list
#define MAX_ARGUMENTS
No maximum number of arguments.
Command line option parsing.
static int time_exec(int argc, char **argv)
"time" command
const char * name
Name of the command.
A command-line option descriptor.
#define COMMAND_DESC(_struct, _options, _min_args, _max_args, _usage)
Construct command descriptor.
FILE_LICENCE(GPL2_OR_LATER)
unsigned long currticks(void)
Get current system time in ticks.
static union @438 opts
"cert<xxx>" option list
int execv(const char *command, char *const argv[])
Execute command.