Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbourelly999 committed Jun 6, 2024
1 parent 5f116c7 commit 6948cdc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions carma_clock_py/src/carma_clock_py.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ PYBIND11_MODULE(libcarma_clock, m)
.def("is_simulation_mode", &fwha_stol::lib::time::CarmaClock::is_simulation_mode,
R"(Return True if simulation mode set to True and False if not.)")
.def("wait_for_initialization", &fwha_stol::lib::time::CarmaClock::wait_for_initialization,
R"(Method will block thread until update() is called on CarmaClock. Only
valid for simulation mode True)")
R"(Method will block thread until update() is called on CarmaClock.
This method should be called once before any calls to sleep or now methods
to ensure that time has a value.)")
.def("sleep_until", &fwha_stol::lib::time::CarmaClock::sleep_until, py::arg("future_time"),
R"(Method will block thread until given time (ms))")
.def("sleep_for", &fwha_stol::lib::time::CarmaClock::sleep_for, py::arg("time_to_sleep"),
Expand Down

0 comments on commit 6948cdc

Please sign in to comment.