delphyne
time_conversion.h File Reference
#include <cstdint>
#include <utility>
#include <ignition/msgs.hh>
#include "delphyne/macros.h"
Include dependency graph for time_conversion.h:
This graph shows which files directly or indirectly include this file:

Namespaces

 delphyne
 

Functions

std::pair< int64_t, int64_t > MicrosToSecsAndNanos (int64_t micros)
 Converts from an integer value in microseconds to a pair of integers containing the value in seconds and the remainder of that in nanoseconds. More...
 
std::pair< int64_t, int64_t > MillisToSecsAndNanos (int64_t millis)
 Converts from an integer value in milliseconds to a pair of integers containing the value in seconds and the remainder of that in nanoseconds. More...
 
std::pair< int64_t, int64_t > SecsToSecsAndNanos (double time)
 Converts from a double value in seconds to a pair of integers containing the value in seconds and the remainder of that in nanoseconds. More...
 
double SecsAndNanosToMillis (int64_t secs, int64_t nsecs)
 Converts from a pair of integers containing independent time values in seconds and nanoseconds into a single double in milliseconds. More...
 
ignition::msgs::Time MillisToIgnitionTime (int64_t millis)
 Generates and returns an ignition::msgs::Time from a given integer value in milliseconds. More...
 
ignition::msgs::Time MicrosToIgnitionTime (int64_t micros)
 Generates and returns an ignition::msgs::Time from a given integer value in microseconds. More...
 
ignition::msgs::Time SecsToIgnitionTime (double secs)
 Generates and returns an ignition::msgs::Time from a given double value in seconds. More...
 
int64_t IgnitionTimeToMillis (const ignition::msgs::Time ign_time)
 Generates and returns an integer value in milliseconds. More...