From 1771f75acfa7be7dc3a79f7bd23403738f572d49 Mon Sep 17 00:00:00 2001 From: Bob Jamison Date: Tue, 28 Nov 2006 21:48:42 +0000 Subject: fix time (bzr r2049) --- buildtool.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'buildtool.cpp') diff --git a/buildtool.cpp b/buildtool.cpp index 00c603ab5..bd221fe1f 100644 --- a/buildtool.cpp +++ b/buildtool.cpp @@ -8208,7 +8208,7 @@ timeDiffString(struct timeval &x, struct timeval &y) int minutes = seconds/60; seconds += minutes*60; char buf[80]; - snprintf(buf, 79, "%dM:%02d.%03dM", minutes, seconds, millis); + snprintf(buf, 79, "%dm %d.%03ds", minutes, seconds, millis); String ret = buf; return ret; @@ -8228,7 +8228,7 @@ bool Make::run(const String &target) if (!run()) return false; gettimeofday(&timeEnd, NULL); - String timeStr = timeDiffString(timeStart, timeEnd); + String timeStr = timeDiffString(timeEnd, timeStart); status("####################################################"); status("# BuildTool Completed : %s", timeStr.c_str()); status("####################################################"); -- cgit v1.2.3