ROS Serial C client library
|
ROS Serial C time. More...
#include "ros_types.h"
Go to the source code of this file.
Functions | |
rosTime_t | rosTimeNow () |
Get current time. | |
void | rosTimeSetNow (rosTime_t *new_now) |
Set current time. | |
void | rosSleep (uint32_t milliseconds) |
Sleep given duration. | |
void | rosRateInit (rosRate_t *rate, uint32_t frequency) |
Initialize rate. | |
void | rosRateSleep (rosRate_t *rate) |
Sleep given rate. |
ROS Serial C time.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
void rosRateInit | ( | rosRate_t * | rate, |
uint32_t | frequency | ||
) |
Initialize rate.
start_time | Initial start time |
frequency | Frequency to achieve |
void rosRateSleep | ( | rosRate_t * | rate | ) |
Sleep given rate.
rate | Pointer to rosRate_t struct |
void rosSleep | ( | uint32_t | milliseconds | ) |
Sleep given duration.
Used for achieving a desired timing. If you want to achieve a continous to use rosRate_t
rosTime_t rosTimeNow | ( | ) |
Get current time.
void rosTimeSetNow | ( | rosTime_t * | new_now | ) |
Set current time.
pointer | to a rosTime structure |