From: Mike Frysinger Date: Fri, 17 Aug 2012 19:44:42 -0400 Subject: [U-Boot] [PATCH] Add a command to access the system timer In-Reply-To: <1345237078-20413-1-git-send-email-joe.hershberger@ni.com> References: <1345237078-20413-1-git-send-email-joe.hershberger@ni.com> Message-ID: <201208171944.43612.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 "." format). > If get is called without start, returns time since boot. > Simple way to benchmark an operation: "timer > start;;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 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. URL: