roshask-0.1.0: Haskell support for the ROS robotics framework.

Ros.Core.RosTime

Description

Utilities for working with ROS time values.

Synopsis

Documentation

type ROSTime = (Word32, Word32)

ROSTime is a tuple of (seconds, nanoseconds)

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.