5 long int timedif(struct timeval a
, struct timeval b
)
9 us
= a
.tv_usec
- b
.tv_usec
;
11 s
= a
.tv_sec
- b
.tv_sec
;
16 void version_command(char *command_name
)
18 printf("%s v%u.%u\n", command_name
, 1, 0);
22 void help_command(char *command_name
, char *description
,
23 const struct option
*long_options
,
24 memcached_programs_help_st
*options
)
28 printf("%s v%u.%u\n\n", command_name
, 1, 0);
29 printf("\t%s\n\n", description
);
30 printf("Current options. A '=' means the option takes a value.\n\n");
32 for (x
= 0; long_options
[x
].name
; x
++)
33 printf("\t --%s%c\n", long_options
[x
].name
,
34 long_options
[x
].has_arg
? '=' : ' ');