summaryrefslogtreecommitdiff
path: root/src/common/timer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/timer.cpp')
-rw-r--r--src/common/timer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/timer.cpp b/src/common/timer.cpp
index ee62df2..b5a2a5e 100644
--- a/src/common/timer.cpp
+++ b/src/common/timer.cpp
@@ -194,3 +194,8 @@ tick_t file_modified(ZString name)
return tick_t();
return tick_t(std::chrono::seconds(buf.st_mtime));
}
+
+bool has_timers()
+{
+ return !timer_heap.empty();
+}