Use units for new NotifierCommand (#1869)

This commit is contained in:
Peter Johnson
2019-09-04 22:54:49 -05:00
committed by GitHub
parent 5ffe15d5ff
commit 3e0f7d0995
3 changed files with 8 additions and 5 deletions

View File

@@ -20,7 +20,7 @@ TEST_F(NotifierCommandTest, NotifierCommandScheduleTest) {
int counter = 0;
NotifierCommand command([&counter] { counter++; }, 0.01, {});
NotifierCommand command([&counter] { counter++; }, 0.01_s, {});
scheduler.Schedule(&command);
std::this_thread::sleep_for(std::chrono::milliseconds(250));