watchdog: Add a function to tell us if the timer is running

This helps us refactor some of our existing code and will be useful for
future changes.

Change-Id: Ifa1547f09997d6824f726fc5f46e15eed4c1e8c1
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/watchdog.hpp b/watchdog.hpp
index 757029c..e829699 100644
--- a/watchdog.hpp
+++ b/watchdog.hpp
@@ -93,6 +93,12 @@
             return timer.expired();
         }
 
+        /** @brief Tells if the timer is running or not */
+        inline bool timerEnabled() const
+        {
+            return timer.getEnabled() != SD_EVENT_OFF;
+        }
+
     private:
         /** @brief sdbusplus handle */
         sdbusplus::bus::bus& bus;