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 /include/config_cmd_all.h | |
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 'include/config_cmd_all.h')
-rw-r--r-- | include/config_cmd_all.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/config_cmd_all.h b/include/config_cmd_all.h index 9716f9cad47..aae6540b437 100644 --- a/include/config_cmd_all.h +++ b/include/config_cmd_all.h @@ -82,6 +82,7 @@ #define CONFIG_CMD_SOURCE /* "source" command support */ #define CONFIG_CMD_SPI /* SPI utility */ #define CONFIG_CMD_TERMINAL /* built-in Serial Terminal */ +#define CONFIG_CMD_TIME /* Measure run time of a command */ #define CONFIG_CMD_UBI /* UBI Support */ #define CONFIG_CMD_UBIFS /* UBIFS Support */ #define CONFIG_CMD_UNIVERSE /* Tundra Universe Support */ |