diff options
| author | Davide Italiano <davide@freebsd.org> | 2016-05-27 19:12:26 +0000 |
|---|---|---|
| committer | Davide Italiano <davide@freebsd.org> | 2016-05-27 19:12:26 +0000 |
| commit | d99892bdb0d2152ce15c475ca9fcfdecfbea15ed (patch) | |
| tree | ce83b571de29456d911bd803898fc0a0a6d9557e | |
| parent | 0baa5c620fb41500c3544881f51bf9e24b24afb0 (diff) | |
| download | bcm5719-llvm-d99892bdb0d2152ce15c475ca9fcfdecfbea15ed.tar.gz bcm5719-llvm-d99892bdb0d2152ce15c475ca9fcfdecfbea15ed.zip | |
[Timer] Expose an API to check if the timer is running.
llvm-svn: 271037
| -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; } |

