summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Andersen2001-11-30 07:54:32 +0000
committerEric Andersen2001-11-30 07:54:32 +0000
commitc3657428d3207d35cda634adbe23f75457f7912b (patch)
tree4e2e551a99ee63df2bff47792c553cd2632b5883 /include
parent38288bbf4cb26be1d1b3ee9175666d6819892a9e (diff)
downloadbusybox-c3657428d3207d35cda634adbe23f75457f7912b.zip
busybox-c3657428d3207d35cda634adbe23f75457f7912b.tar.gz
Add in a 'time' applet. Adds 4.5k.
-Erik
Diffstat (limited to 'include')
-rw-r--r--include/applets.h3
-rw-r--r--include/usage.h7
2 files changed, 10 insertions, 0 deletions
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 ...]"