summaryrefslogtreecommitdiffstats
path: root/src/build.h
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2013-03-11 20:47:37 (GMT)
committerEvan Martin <martine@danga.com>2013-03-11 20:47:37 (GMT)
commitecc876eb5152c182fc7f3eb768e98936bff9119c (patch)
treecf468307a6f8ee3ef8c4fa778c89b87888016bcc /src/build.h
parenta3bf38cac72303bf6a288c26ccc71b1ba9de2b47 (diff)
parent5c132de2b75642edd2f1ead0da11689fcbc9d819 (diff)
downloadNinja-ecc876eb5152c182fc7f3eb768e98936bff9119c.zip
Ninja-ecc876eb5152c182fc7f3eb768e98936bff9119c.tar.gz
Ninja-ecc876eb5152c182fc7f3eb768e98936bff9119c.tar.bz2
Merge pull request #513 from fifoforlifo/master
Adding elapsed time (%e) to NINJA_STATUS.
Diffstat (limited to 'src/build.h')
-rw-r--r--src/build.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/build.h b/src/build.h
index 23f653e..5747170 100644
--- a/src/build.h
+++ b/src/build.h
@@ -220,6 +220,7 @@ struct BuildStatus {
RateInfo() : rate_(-1) {}
void Restart() { stopwatch_.Restart(); }
+ double Elapsed() const { return stopwatch_.Elapsed(); }
double rate() { return rate_; }
void UpdateRate(int edges) {