Migrate some layout timer-related code from std::chrono to Seconds and MonotonicTime
[WebKit-https.git] / Source / WTF / wtf / AutomaticThread.cpp
index bd2c7d5..0406f77 100644 (file)
@@ -181,7 +181,7 @@ void AutomaticThread::start(const LockHolder&)
                         RELEASE_ASSERT(result == PollResult::Wait);
                         // Shut the thread down after one second.
                         bool awokenByNotify =
-                            m_condition->m_condition.waitFor(*m_lock, Seconds(1));
+                            m_condition->m_condition.waitFor(*m_lock, 1_s);
                         if (!awokenByNotify) {
                             if (verbose)
                                 dataLog(RawPointer(this), ": Going to sleep!\n");