
18 Aug
2012
18 Aug
'12
1:44 a.m.
On Friday 17 August 2012 16:57:58 Joe Hershberger wrote:
Two sub-commands... start and get.
- start sets the reference.
- get prints out the time since the last start (in "<sec>.<msec>" format).
If get is called without start, returns time since boot. Simple way to benchmark an operation: "timer start;<commands-to-measure>;timer get"
please add a CONFIG_CMD_xxx for this
--- a/common/cmd_misc.c +++ b/common/cmd_misc.c
+int do_timer(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
static
+U_BOOT_CMD(
- timer , 2, 1, do_timer,
no space between "timer" and "," -mike