summaryrefslogtreecommitdiffstats
path: root/commands/Kconfig
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-03-16 21:32:05 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2011-08-03 09:16:29 +0200
commit5de95712d99eff5c628b19681b12a88dd20ec021 (patch)
tree9ff3127bb886623c7bf2d319294660bb6736dee7 /commands/Kconfig
parent39825b591ceb7beaaed8a1c424235db48d79e4d1 (diff)
downloadbarebox-5de95712d99eff5c628b19681b12a88dd20ec021.tar.gz
barebox-5de95712d99eff5c628b19681b12a88dd20ec021.tar.xz
Add 'time' command to measure execution time of a command
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/Kconfig')
-rw-r--r--commands/Kconfig10
1 files changed, 10 insertions, 0 deletions
diff --git a/commands/Kconfig b/commands/Kconfig
index 5700dc2890..e9222601c4 100644
--- a/commands/Kconfig
+++ b/commands/Kconfig
@@ -97,6 +97,16 @@ endchoice
endif
+config CMD_TIME
+ bool "time"
+ help
+ Just like the unix time command this command allows to measure the
+ execution time of a command. Note: barebox does not use interrupts,
+ so the system timer can overrun during the execution of the command
+ resulting in incorrect results. The timer gets updated in the function
+ checking for ctrl-c, so the time command can be used with commands
+ which are interruptible with ctrl-c.
+
endmenu
menu "file commands "