Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions include/behaviortree_cpp/bt_factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ class Tree
* @param timeout duration of the sleep
* @return true if the timeout was NOT reached and the signal was received.
*
* @note On MSVC, std::condition_variable::wait_for() rounds the timeout up to the
* system timer resolution (about 15.6 ms), see microsoft/STL#2173. A short sleep, e.g.
* in tickWhileRunning(), can take much longer there. Calling timeBeginPeriod(1) once
* at startup (Windows API, links winmm) restores a 1 ms resolution.
*
* */
bool sleep(std::chrono::system_clock::duration timeout);

Expand Down
Loading