[U-Boot] [PATCH V3] cmd_time: add time command

Wolfgang Denk wd at denx.de
Sun Oct 9 22:27:25 CEST 2011


Dear Che-Liang Chiou,

In message <1317980448-25774-1-git-send-email-clchiou at chromium.org> you wrote:
> The 'time' command runs and reports execution time of commands.
> 
> Sample usage:
> --------------------
> u-boot# time crc 0x1000 1000
> CRC32 for 00001000 ... 00001fff ==> ae94dc4b
> 
> time: 0.004 seconds, 4 ticks
> --------------------
> 
> Signed-off-by: Che-Liang Chiou <clchiou at chromium.org>
> ---
> 
> Changes since V2
>  - Remove CONFIG_CMD_TIME from config_cmd_all.h
> 
> Changes Since V1
>  - Switch unsigned long int to ulong to match function prototype
>  - Remove unnecessary 'ifdef CONFIG_SYS_HZ' guard
>  - Factor out codes into the run_command_and_time_it() function
> 
>  README            |    1 +
>  common/Makefile   |    1 +
>  common/cmd_time.c |   90 +++++++++++++++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 92 insertions(+), 0 deletions(-)
>  create mode 100644 common/cmd_time.c

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
War is never imperative.
	-- McCoy, "Balance of Terror", stardate 1709.2


More information about the U-Boot mailing list