Namespaces | Macros | Functions | Variables
src/time.cpp File Reference
#include "ros/time.h"
#include "ros/impl/time.h"
#include <cmath>
#include <ctime>
#include <iomanip>
#include <stdexcept>
#include <limits>
#include <boost/thread/mutex.hpp>
#include <boost/io/ios_state.hpp>
#include <boost/date_time/posix_time/ptime.hpp>
Include dependency graph for src/time.cpp:

Go to the source code of this file.

Namespaces

 ros
 

Macros

#define HAS_CLOCK_GETTIME   (_POSIX_C_SOURCE >= 199309L)
 

Functions

const Duration ros::DURATION_MAX (std::numeric_limits< int32_t >::max(), 999999999)
 
const Duration ros::DURATION_MIN (std::numeric_limits< int32_t >::min(), 0)
 
static bool ros::g_initialized (false)
 
static bool ros::g_stopped (false)
 
static bool ros::g_use_sim_time (true)
 
ROSTIME_DECL void ros::normalizeSecNSec (uint64_t &sec, uint64_t &nsec)
 
ROSTIME_DECL void ros::normalizeSecNSec (uint32_t &sec, uint32_t &nsec)
 
ROSTIME_DECL void ros::normalizeSecNSecUnsigned (int64_t &sec, int64_t &nsec)
 
std::ostream & ros::operator<< (std::ostream &os, const Duration &rhs)
 
std::ostream & ros::operator<< (std::ostream &os, const WallDuration &rhs)
 
ROSTIME_DECL std::ostream & ros::operator<< (std::ostream &os, const Time &rhs)
 
ROSTIME_DECL std::ostream & ros::operator<< (std::ostream &os, const WallTime &rhs)
 
ROSTIME_DECL std::ostream & ros::operator<< (std::ostream &os, const SteadyTime &rhs)
 
int ros::ros_nanosleep (const uint32_t &sec, const uint32_t &nsec)
 Simple representation of the rt library nanosleep function. More...
 
void ros::ros_steadytime (uint32_t &sec, uint32_t &nsec)
 
bool ros::ros_wallsleep (uint32_t sec, uint32_t nsec)
 Go to the wall! More...
 
void ros::ros_walltime (uint32_t &sec, uint32_t &nsec)
 
const Time ros::TIME_MAX (std::numeric_limits< uint32_t >::max(), 999999999)
 
const Time ros::TIME_MIN (0, 1)
 

Variables

static Time ros::g_sim_time (0, 0)
 
static boost::mutex ros::g_sim_time_mutex
 

Macro Definition Documentation

#define HAS_CLOCK_GETTIME   (_POSIX_C_SOURCE >= 199309L)

Definition at line 64 of file src/time.cpp.



rostime
Author(s): Josh Faust
autogenerated on Thu Dec 21 2017 03:22:01