Change interval units to milliseconds

Allow the monitoring intervals to be specified in
milliseconds instead of seconds in order to handle
polling intervals less than a second.

Change-Id: I3ef078df29ef2866920f00103710b02dbde6fcb2
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/power-sequencer/argument.cpp b/power-sequencer/argument.cpp
index e76adce..4e80c53 100644
--- a/power-sequencer/argument.cpp
+++ b/power-sequencer/argument.cpp
@@ -30,7 +30,7 @@
     std::cerr << "    --help                Print this menu\n";
     std::cerr << "    --action=<action>     Action: pgood-monitor "
                  "or runtime-monitor\n";
-    std::cerr << "    --interval=<interval> Interval in seconds:\n";
+    std::cerr << "    --interval=<interval> Interval in milliseconds:\n";
     std::cerr << "      PGOOD monitor:   time allowed for PGOOD to come up\n";
     std::cerr << "      Runtime monitor: polling interval.\n";
 
diff --git a/power-sequencer/main.cpp b/power-sequencer/main.cpp
index 923b5dc..87b8070 100644
--- a/power-sequencer/main.cpp
+++ b/power-sequencer/main.cpp
@@ -43,7 +43,7 @@
         exit(EXIT_FAILURE);
     }
 
-    std::chrono::seconds interval{i};
+    std::chrono::milliseconds interval{i};
 
     sd_event* e = nullptr;
     auto r = sd_event_default(&e);
diff --git a/power-sequencer/pgood_monitor.hpp b/power-sequencer/pgood_monitor.hpp
index 199efe8..9cbda60 100644
--- a/power-sequencer/pgood_monitor.hpp
+++ b/power-sequencer/pgood_monitor.hpp
@@ -46,7 +46,7 @@
         PGOODMonitor(std::unique_ptr<witherspoon::power::Device>&& d,
                 sdbusplus::bus::bus& b,
                 witherspoon::power::event::Event& e,
-                std::chrono::seconds& t) :
+                std::chrono::milliseconds& t) :
             DeviceMonitor(std::move(d), e, t),
             bus(b)
         {
diff --git a/power-sequencer/runtime_monitor.hpp b/power-sequencer/runtime_monitor.hpp
index aae17ed..de71dcf 100644
--- a/power-sequencer/runtime_monitor.hpp
+++ b/power-sequencer/runtime_monitor.hpp
@@ -52,7 +52,7 @@
         RuntimeMonitor(std::unique_ptr<witherspoon::power::Device>&& d,
                 sdbusplus::bus::bus& b,
                 witherspoon::power::event::Event& e,
-                std::chrono::seconds& i) :
+                std::chrono::milliseconds& i) :
             DeviceMonitor(std::move(d), e, i),
             bus(b),
             match(bus,