Use the common timer class

The common timer class from sdbusplus offers all the timer goodness that
we currently use. The unit test is also no longer needed (and has been
added to sdbusplus's version of the timer.hpp implementation).

Change-Id: I278817489433a29ca739f70fdacd8bb897797d66
Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
diff --git a/host-cmd-manager.cpp b/host-cmd-manager.cpp
index 4084910..2f96661 100644
--- a/host-cmd-manager.cpp
+++ b/host-cmd-manager.cpp
@@ -3,12 +3,12 @@
 #include "host-cmd-manager.hpp"
 
 #include "systemintfcmds.hpp"
-#include "timer.hpp"
-#include "utils.hpp"
 
 #include <chrono>
 #include <phosphor-logging/elog-errors.hpp>
 #include <phosphor-logging/log.hpp>
+#include <sdbusplus/timer.hpp>
+#include <utils.hpp>
 #include <xyz/openbmc_project/Common/error.hpp>
 #include <xyz/openbmc_project/State/Host/server.hpp>
 
@@ -47,7 +47,7 @@
 IpmiCmdData Manager::getNextCommand()
 {
     // Stop the timer. Don't have to Err failure doing so.
-    auto r = timer.setTimer(SD_EVENT_OFF);
+    auto r = timer.stop();
     if (r < 0)
     {
         log<level::ERR>("Failure to STOP the timer",
@@ -123,7 +123,7 @@
         auto time = std::chrono::duration_cast<std::chrono::microseconds>(
             std::chrono::seconds(IPMI_SMS_ATN_ACK_TIMEOUT_SECS));
 
-        auto r = timer.startTimer(time);
+        auto r = timer.start(time);
         if (r < 0)
         {
             log<level::ERR>("Error starting timer for control host");