Lines Matching refs:chrono
155 static void DurationToTimeSpec(timespec& ts, const std::chrono::milliseconds d) { in DurationToTimeSpec()
156 auto s = std::chrono::duration_cast<std::chrono::seconds>(d); in DurationToTimeSpec()
157 auto ns = std::chrono::duration_cast<std::chrono::nanoseconds>(d - s); in DurationToTimeSpec()
158 ts.tv_sec = std::min<std::chrono::seconds::rep>(s.count(), std::numeric_limits<time_t>::max()); in DurationToTimeSpec()
162 using AbsTime = std::chrono::time_point<std::chrono::steady_clock>;
164 static void UpdateTimeSpec(timespec& ts, std::chrono::milliseconds relative_timeout, in UpdateTimeSpec()
166 auto now = std::chrono::steady_clock::now(); in UpdateTimeSpec()
167 auto time_elapsed = std::chrono::duration_cast<std::chrono::milliseconds>(now - start_time); in UpdateTimeSpec()
181 const std::chrono::milliseconds& relative_timeout, in WaitForPropertyCreation()
197 std::chrono::milliseconds relative_timeout) { in WaitForProperty()
198 auto start_time = std::chrono::steady_clock::now(); in WaitForProperty()
219 std::chrono::milliseconds relative_timeout) { in WaitForPropertyCreation()
220 auto start_time = std::chrono::steady_clock::now(); in WaitForPropertyCreation()