diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2014-04-18 17:46:13 +0900 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-05-12 15:19:46 -0400 |
commit | 1d64377177d802436329d54b69183a9ca0d33247 (patch) | |
tree | 63ca6c45279b810086e50a00442e0945cfb14181 /common/cmd_time.c | |
parent | 597fe041a85fe3b1bf6044adf5e132f7a5457000 (diff) |
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>
Diffstat (limited to 'common/cmd_time.c')
-rw-r--r-- | common/cmd_time.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common/cmd_time.c b/common/cmd_time.c index 5180cb46a87..de57e3b9dd5 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[]) |