diff options
| -rw-r--r-- | llvm/include/llvm/Support/Timer.h | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/llvm/include/llvm/Support/Timer.h b/llvm/include/llvm/Support/Timer.h index 499fe7b7e70..7ec06dd6b3a 100644 --- a/llvm/include/llvm/Support/Timer.h +++ b/llvm/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; } | 

