diff options
-rw-r--r-- | include/Support/Timer.h | 8 | ||||
-rw-r--r-- | include/llvm/Support/Timer.h | 8 |
2 files changed, 2 insertions, 14 deletions
diff --git a/include/Support/Timer.h b/include/Support/Timer.h index 93d9d16609..5d39fc0f12 100644 --- a/include/Support/Timer.h +++ b/include/Support/Timer.h @@ -64,13 +64,7 @@ public: // operator< - Allow sorting... bool operator<(const Timer &T) const { - // Primary sort key is User+System time - if (UserTime+SystemTime < T.UserTime+T.SystemTime) - return true; - if (UserTime+SystemTime > T.UserTime+T.SystemTime) - return false; - - // Secondary sort key is Wall Time + // Sort by Wall Time elapsed, as it is the only thing really accurate return Elapsed < T.Elapsed; } bool operator>(const Timer &T) const { return T.operator<(*this); } diff --git a/include/llvm/Support/Timer.h b/include/llvm/Support/Timer.h index 93d9d16609..5d39fc0f12 100644 --- a/include/llvm/Support/Timer.h +++ b/include/llvm/Support/Timer.h @@ -64,13 +64,7 @@ public: // operator< - Allow sorting... bool operator<(const Timer &T) const { - // Primary sort key is User+System time - if (UserTime+SystemTime < T.UserTime+T.SystemTime) - return true; - if (UserTime+SystemTime > T.UserTime+T.SystemTime) - return false; - - // Secondary sort key is Wall Time + // Sort by Wall Time elapsed, as it is the only thing really accurate return Elapsed < T.Elapsed; } bool operator>(const Timer &T) const { return T.operator<(*this); } |