fs/fs.c: do_fsload: measure throughput
authorAndreas Bießmann <andreas.devel@googlemail.com>
Wed, 14 Nov 2012 12:32:37 +0000 (13:32 +0100)
committerAnatolij Gustschin <agust@denx.de>
Wed, 14 Nov 2012 12:35:14 +0000 (13:35 +0100)
commitda1fd96ce4ec58604edfaa7dd1ae4a528ce62a06
treefab62ead84a9a21cae813c8acfcd4b1cd6c932a5
parent624c721f0c6e42368cc1b466dbaa540dd3014295
fs/fs.c: do_fsload: measure throughput

This patch adds time measurement and throughput calculation for
all supported load commands.

The output of ext2load changes from

---8<---
1830666 bytes read
--->8---

to

---8<---
1830666 bytes read in 237 ms (7.4 MiB/s)
--->8---

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
[agust: rebased and revised commit log]
Signed-off-by: Anatolij Gustschin <agust@denx.de>
fs/fs.c