From c3657428d3207d35cda634adbe23f75457f7912b Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 30 Nov 2001 07:54:32 +0000 Subject: Add in a 'time' applet. Adds 4.5k. -Erik --- include/applets.h | 3 +++ include/usage.h | 7 +++++++ 2 files changed, 10 insertions(+) (limited to 'include') diff --git a/include/applets.h b/include/applets.h index aa112c3..0b90694 100644 --- a/include/applets.h +++ b/include/applets.h @@ -437,6 +437,9 @@ #ifdef CONFIG_TFTP APPLET(tftp, tftp_main, _BB_DIR_USR_BIN) #endif +#ifdef BB_TIME + APPLET(time, time_main, _BB_DIR_USR_BIN) +#endif #ifdef CONFIG_TOUCH APPLET(touch, touch_main, _BB_DIR_BIN) #endif diff --git a/include/usage.h b/include/usage.h index df1c18e..a3447e8 100644 --- a/include/usage.h +++ b/include/usage.h @@ -1701,6 +1701,13 @@ USAGE_TFTP_BS( \ "\t-b SIZE\tTransfer blocks of SIZE octets.\n" \ ) +#define time_trivial_usage \ + "[OPTION]... COMMAND [ARGS...]" +#define time_full_usage \ + "Runs the program COMMAND with arguments ARGS. When COMMAND finishes,\n" + "COMMAND's resource usage information is displayed\n\n" + "Options:\n" \ + "\t-v\tDisplays verbose resource usage information." #define touch_trivial_usage \ "[-c] FILE [FILE ...]" -- cgit v1.1