diff options
author | Avinash Baliga <fifoforlifo@gmail.com> | 2013-03-11 05:15:46 (GMT) |
---|---|---|
committer | Avinash Baliga <fifoforlifo@gmail.com> | 2013-03-11 05:15:46 (GMT) |
commit | 5c132de2b75642edd2f1ead0da11689fcbc9d819 (patch) | |
tree | fbff4e8bddf3f01259801d6248a58a397ab21f66 | |
parent | dce14e8e3dd42b2ef40f7b005f6a8696f6ad6a0a (diff) | |
download | Ninja-5c132de2b75642edd2f1ead0da11689fcbc9d819.zip Ninja-5c132de2b75642edd2f1ead0da11689fcbc9d819.tar.gz Ninja-5c132de2b75642edd2f1ead0da11689fcbc9d819.tar.bz2 |
Added %e to manual.asciidoc, fixed brace style.
-rw-r--r-- | doc/manual.asciidoc | 3 | ||||
-rw-r--r-- | src/build.cc | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/manual.asciidoc b/doc/manual.asciidoc index 1e5b70b..5378d17 100644 --- a/doc/manual.asciidoc +++ b/doc/manual.asciidoc @@ -222,6 +222,7 @@ Several placeholders are available: `%f`:: The number of finished edges. `%o`:: Overall rate of finished edges per second `%c`:: Current rate of finished edges per second (average over builds specified by -j or its default) +`%e`:: Elapsed time in seconds. _(Available since Ninja 1.2.)_ `%%`:: A plain `%` character. The default progress status is `"[%s/%t] "` (note the trailing space @@ -684,7 +685,7 @@ keys. $variables are expanded) is passed directly to `sh -c` without interpretation by Ninja. Each `rule` may have only one `command` declaration. To specify multiple commands use `&&` (or similar) to - concatenate operations. + concatenate operations. `depfile`:: path to an optional `Makefile` that contains extra _implicit dependencies_ (see <<ref_dependencies,the reference on diff --git a/src/build.cc b/src/build.cc index 74f5931..1e3ad9e 100644 --- a/src/build.cc +++ b/src/build.cc @@ -238,8 +238,7 @@ string BuildStatus::FormatProgressStatus( out += buf; break; - case 'e': - { + case 'e': { double elapsed = overall_rate_.Elapsed(); snprintf(buf, sizeof(buf), "%.3f", elapsed); out += buf; |