共用方式為


sleep_until Function

Blocks the calling thread at least until the specified time.

template<class Clock, class Duration>
    void sleep_until(const chrono::time_point<Clock, Duration>& Abs_time);
void sleep_until(const xtime *Abs_time);

Parameters

  • Abs_time
    Represents a point in time.

Remarks

This function does not throw any exceptions.

Requirements

Header: thread

Namespace: std::this_thread

See Also

Reference

<thread>

time_point Class

Other Resources

C++ Standard Library Header Files