Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expose ros_walltime and ros_steadytime #73

Merged
merged 1 commit into from
Feb 2, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions rostime/include/ros/time.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ namespace ros
ROSTIME_DECL void normalizeSecNSec(uint64_t& sec, uint64_t& nsec);
ROSTIME_DECL void normalizeSecNSec(uint32_t& sec, uint32_t& nsec);
ROSTIME_DECL void normalizeSecNSecUnsigned(int64_t& sec, int64_t& nsec);
ROSTIME_DECL void ros_walltime(uint32_t& sec, uint32_t& nsec);
ROSTIME_DECL void ros_steadytime(uint32_t& sec, uint32_t& nsec);

/*********************************************************************
** Time Classes
Expand Down
11 changes: 6 additions & 5 deletions rostime/src/time.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,7 @@ namespace ros
/*********************************************************************
** Cross Platform Functions
*********************************************************************/
/*
* These have only internal linkage to this translation unit.
* (i.e. not exposed to users of the time classes)
*/
void ros_walltime(uint32_t& sec, uint32_t& nsec)
void ros_walltime(uint32_t& sec, uint32_t& nsec)
{
#ifndef WIN32
#if HAS_CLOCK_GETTIME
Expand Down Expand Up @@ -221,6 +217,11 @@ namespace ros
#endif
}

/*
* These have only internal linkage to this translation unit.
* (i.e. not exposed to users of the time classes)
*/

/**
* @brief Simple representation of the rt library nanosleep function.
*/
Expand Down