Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
rokubimini_ethercat
soem_interface
common
ThreadSleep.cpp
Go to the documentation of this file.
1
#include <
rokubimini_ethercat/soem_interface/common/ThreadSleep.hpp
>
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
rokubimini::soem_interface::threadSleep
void threadSleep(const double duration)
Definition:
ThreadSleep.cpp:9
ThreadSleep.hpp
rokubimini
rokubimini_ethercat
Author(s):
autogenerated on Wed Mar 3 2021 03:09:16