From e9d79b6e01418f61502f8548f65205df9c2eb196 Mon Sep 17 00:00:00 2001 From: ishmal Date: Tue, 28 Nov 2006 21:48:42 +0000 Subject: [PATCH] fix time --- buildtool.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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("####################################################"); -- 2.30.2