summaryrefslogtreecommitdiff
path: root/common/cmd_time.c
AgeCommit message (Collapse)Author
2011-08-24Add time measurement command to u-bootChe-Liang Chiou
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>