aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Support/Timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Support/Timer.h')
-rw-r--r--include/llvm/Support/Timer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Support/Timer.h b/include/llvm/Support/Timer.h
index 499fe7b7e70c..f0cb07599b86 100644
--- a/include/llvm/Support/Timer.h
+++ b/include/llvm/Support/Timer.h
@@ -104,6 +104,9 @@ public:
const std::string &getName() const { return Name; }
bool isInitialized() const { return TG != nullptr; }
+ /// Check if the timer is currently running.
+ bool isRunning() const { return Running; }
+
/// Check if startTimer() has ever been called on this timer.
bool hasTriggered() const { return Triggered; }