Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Issue 6670118: Add time measurement command to u-boot (Closed)

Created:
9 years, 8 months ago by Che-Liang Chiou
Modified:
9 years ago
Reviewers:
sjg, robotboy
CC:
chromium-os-reviews_chromium.org, dneiss, Olof Johansson, amoljadi, chromeboy
Visibility:
Public.

Description

Add time measurement command to u-boot The command "time" takes a command as its argument, executes the command, and reports how much time the command has used. Example usage: ------------------------------------------------------------ CrOS> time sleep 1 time: 1.000 seconds, 1000 ticks CrOS> time sleep 10 time: 10.000 seconds, 10000 ticks ------------------------------------------------------------ R=robotboy@chromium.org,sjg@chromium.org BUG=none TEST=see above Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=e14cdef

Patch Set 1 #

Total comments: 21

Patch Set 2 : Code review #

Total comments: 6

Patch Set 3 : Code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -0 lines) Patch
M common/Makefile View 1 chunk +1 line, -0 lines 0 comments Download
A common/cmd_time.c View 1 2 1 chunk +81 lines, -0 lines 0 comments Download
M include/config_cmd_all.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Che-Liang Chiou
9 years, 8 months ago (2011-03-31 11:05:10 UTC) #1
Che-Liang Chiou
Do you think I should better send two CLs, one for add this to u-boot, ...
9 years, 8 months ago (2011-03-31 11:08:08 UTC) #2
sjg
Please see comments. Yes to your question please. In fact once Anton pushes the change ...
9 years, 8 months ago (2011-03-31 13:45:45 UTC) #3
Che-Liang Chiou
Hi Simon, Thanks for comments. Replies are inlined. Please take a look. http://codereview.chromium.org/6670118/diff/1/common/cmd_time.c File common/cmd_time.c ...
9 years, 8 months ago (2011-04-04 09:24:40 UTC) #4
sjg
Looking better! Hoping to simplify further though. http://codereview.chromium.org/6670118/diff/5001/common/cmd_time.c File common/cmd_time.c (right): http://codereview.chromium.org/6670118/diff/5001/common/cmd_time.c#newcode61 common/cmd_time.c:61: milliseconds = ...
9 years, 8 months ago (2011-04-05 01:21:44 UTC) #5
Che-Liang Chiou
Inlined. PTAL. http://codereview.chromium.org/6670118/diff/5001/common/cmd_time.c File common/cmd_time.c (right): http://codereview.chromium.org/6670118/diff/5001/common/cmd_time.c#newcode61 common/cmd_time.c:61: milliseconds = guess = remainder * 1000 ...
9 years, 8 months ago (2011-04-06 08:48:40 UTC) #6
robotboy
LGTM, thanks.
9 years, 8 months ago (2011-04-06 21:24:11 UTC) #7
sjg
LGTM2 yes this is great thanks. Do you want to try upstreaming this? - Simon ...
9 years, 8 months ago (2011-04-06 21:40:05 UTC) #8
Che-Liang Chiou
9 years, 8 months ago (2011-04-07 02:41:10 UTC) #9
Yes, I want to upstream this.

On 2011/04/06 21:40:05, sjg wrote:
> LGTM2 yes this is great thanks. Do you want to try upstreaming this? - Simon
> 
> On Wed, Apr 6, 2011 at 2:24 PM,  <mailto:robotboy@chromium.org> wrote:
> > LGTM, thanks.
> >
> >
> > http://codereview.chromium.org/6670118/
> >

Powered by Google App Engine
This is Rietveld 408576698