ThreadSleep.cpp
Go to the documentation of this file.
2 
3 #include <thread>
4 
5 namespace rokubimini
6 {
7 namespace soem_interface
8 {
9 void threadSleep(const double duration)
10 {
11  std::this_thread::sleep_for(std::chrono::nanoseconds(static_cast<int64_t>(1e9 * duration)));
12 }
13 
14 } // namespace soem_interface
15 } // namespace rokubimini
void threadSleep(const double duration)
Definition: ThreadSleep.cpp:9


rokubimini_ethercat
Author(s):
autogenerated on Wed Mar 3 2021 03:09:16