[U-Boot] [PATCH] cmd_time: do not show ticks

The command "time" shows the execution time of the command given to the argument, like this:
time: 45.293 seconds, 45293 ticks
Since we adopted CONFIG_SYS_HZ = 1000 for all boards, we always have a simple formula: "1 tick = 0.0001 second".
Showing ticks looks almost redundant.
Signed-off-by: Masahiro Yamada yamada.m@jp.panasonic.com --- common/cmd_time.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/common/cmd_time.c b/common/cmd_time.c index 5180cb4..de57e3b 100644 --- a/common/cmd_time.c +++ b/common/cmd_time.c @@ -21,8 +21,7 @@ static void report_time(ulong cycles) printf("\ntime:"); if (minutes) printf(" %lu minutes,", minutes); - printf(" %lu.%03lu seconds, %lu ticks\n", - seconds, milliseconds, cycles); + printf(" %lu.%03lu seconds\n", seconds, milliseconds); }
static int do_time(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])

On Fri, Apr 18, 2014 at 05:46:13PM +0900, Masahiro Yamada wrote:
The command "time" shows the execution time of the command given to the argument, like this:
time: 45.293 seconds, 45293 ticks
Since we adopted CONFIG_SYS_HZ = 1000 for all boards, we always have a simple formula: "1 tick = 0.0001 second".
Showing ticks looks almost redundant.
Signed-off-by: Masahiro Yamada yamada.m@jp.panasonic.com
Applied to u-boot/master, thanks!
participants (2)
-
Masahiro Yamada
-
Tom Rini