Ros.Core.RosTime
Description
Utilities for working with ROS time values.
- type ROSTime = (Word32, Word32)
- type ROSDuration = (Word32, Word32)
- toROSTime :: UTCTime -> ROSTime
- fromROSTime :: FromROSTime a => ROSTime -> a
- diffROSTime :: ROSTime -> ROSTime -> ROSDuration
- getROSTime :: IO ROSTime
- diffSeconds :: ROSTime -> ROSTime -> Double
Documentation
type ROSDuration = (Word32, Word32)
ROSDuration is a tuple of (seconds, nanoseconds)
fromROSTime :: FromROSTime a => ROSTime -> a
diffROSTime :: ROSTime -> ROSTime -> ROSDuration
timeDiff t1 t2 computes the difference t1 - t2.
getROSTime :: IO ROSTime
Get the current POSIX time.
diffSeconds :: ROSTime -> ROSTime -> Double
Compute the difference in seconds between two ROSTime
values. The application diffSeconds tStop tStart computes the
time interval tStop - tStart.