Robot Raconteur Core C++ Library
Classes | Typedefs | Functions
Timer.h File Reference

Go to the source code of this file.

Classes

struct  RobotRaconteur::TimerEvent
 Timer event structure. More...
 
class  RobotRaconteur::Timer
 A timer to invoke a callback. More...
 
class  RobotRaconteur::Rate
 Rate to stabilize a loop. More...
 

Typedefs

using RobotRaconteur::TimerPtr = boost::shared_ptr< Timer >
 Convenience alias for Timer shared_ptr.
 
using RobotRaconteur::RatePtr = boost::shared_ptr< Rate >
 Convenience alias for Rate shared_ptr.
 

Functions

void RobotRaconteur::HighResolutionSleep (const boost::posix_time::time_duration &duration)
 Sleep using high resolution timer provided by the OS. More...
 

Detailed Description

Author
John Wason, PhD
License
Software License Agreement (Apache License)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Function Documentation

◆ HighResolutionSleep()

void RobotRaconteur::HighResolutionSleep ( const boost::posix_time::time_duration &  duration)

Sleep using high resolution timer provided by the OS.

Prefer to use RobotRaconteurNode::Sleep() instead which will use simulated time if active.

Parameters
durationThe duration to sleep