summaryrefslogtreecommitdiffstats
path: root/src/build.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/build.cc')
-rw-r--r--src/build.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/build.cc b/src/build.cc
index 701fa92..1e3ad9e 100644
--- a/src/build.cc
+++ b/src/build.cc
@@ -238,6 +238,13 @@ string BuildStatus::FormatProgressStatus(
out += buf;
break;
+ case 'e': {
+ double elapsed = overall_rate_.Elapsed();
+ snprintf(buf, sizeof(buf), "%.3f", elapsed);
+ out += buf;
+ break;
+ }
+
default:
Fatal("unknown placeholder '%%%c' in $NINJA_STATUS", *s);
return "";