network_manager: Upgrade delayed executor to be more generically useful
We can now use this in more parts of the codebase and with timeouts that
have more precision than 1 second.
Change-Id: I77c677230df6c288b29cd0895fe36f3f0158b393
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/src/network_manager_main.cpp b/src/network_manager_main.cpp
index ca971f3..a65e635 100644
--- a/src/network_manager_main.cpp
+++ b/src/network_manager_main.cpp
@@ -33,7 +33,7 @@
using Timer = sdeventplus::utility::Timer<sdeventplus::ClockId::Monotonic>;
public:
- TimerExecutor(sdeventplus::Event& event, std::chrono::seconds delay) :
+ TimerExecutor(sdeventplus::Event& event, std::chrono::milliseconds delay) :
delay(delay), timer(event, nullptr)
{}
@@ -48,7 +48,7 @@
}
private:
- std::chrono::seconds delay;
+ std::chrono::milliseconds delay;
Timer timer;
};