diff options
author | Che-Liang Chiou <clchiou@chromium.org> | 2011-04-07 10:44:21 +0800 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2011-08-24 09:56:22 -0700 |
commit | 5bc482ef0632a01dfc49411329455b5fc3b2196a (patch) | |
tree | c727939d01e3a1ded9ecc6c2099079e920bf36db /common/Makefile | |
parent | 6801a4a7335075ea29b6a8a1004bde425e7e7152 (diff) |
Add time measurement command to u-boot
The command "time" takes a command as its argument, executes the command, and reports how much time the command has used.
Example usage:
------------------------------------------------------------
CrOS> time sleep 1
time: 1.000 seconds, 1000 ticks
CrOS> time sleep 10
time: 10.000 seconds, 10000 ticks
------------------------------------------------------------
R=robotboy@chromium.org,sjg@chromium.org
BUG=none
TEST=see above
Review URL: http://codereview.chromium.org/6670118
Change-Id: I97cb234c68f29e5db1f5a66abbe32ec6e575b847
Reviewed-on: http://gerrit.chromium.org/gerrit/201
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/Makefile')
-rw-r--r-- | common/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/Makefile b/common/Makefile index fe7497416d..a4757a492a 100644 --- a/common/Makefile +++ b/common/Makefile @@ -147,6 +147,7 @@ COBJS-$(CONFIG_CMD_SPI) += cmd_spi.o COBJS-$(CONFIG_CMD_SPIBOOTLDR) += cmd_spibootldr.o COBJS-$(CONFIG_CMD_STRINGS) += cmd_strings.o COBJS-$(CONFIG_CMD_TERMINAL) += cmd_terminal.o +COBJS-$(CONFIG_CMD_TIME) += cmd_time.o COBJS-$(CONFIG_SYS_HUSH_PARSER) += cmd_test.o COBJS-$(CONFIG_CMD_TSI148) += cmd_tsi148.o COBJS-$(CONFIG_CMD_UBI) += cmd_ubi.o |