Change rate measurement code.
authorNico Weber <nicolasweber@gmx.de>
Fri, 14 Sep 2012 13:37:31 +0000 (22:37 +0900)
committerNico Weber <nicolasweber@gmx.de>
Fri, 14 Sep 2012 13:48:48 +0000 (22:48 +0900)
commit48143c9b07eca30c99d47cadf3c0ae111b369f1b
tree664f292f0ca0797ecb02a5c7df0f5158eb36f51d
parent06fa62352d1e9868409b299ffc8abc8f4cd9a39d
Change rate measurement code.

For %o, remove a superfluous + 0.5: snprintf("%f") rounds already.
Remove some unnecessary code.

For %c, fix a TODO to add a sliding window and update after every
completed edge. Else, with -j50 and several files that take 3s to
compile each, this number would only update every 150s. Also give
the number one decimal place so that this can measure steps slower
than 1s.
src/build.cc
src/build.h
src/metrics.h