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

Safe HaskellSafe
LanguageHaskell2010

Ros.Internal.RosTime

Description

Utilities for working with ROS time values.

Synopsis

Documentation

type ROSTime = (Word32, Word32) Source

ROSTime is a tuple of (seconds, nanoseconds)

type ROSDuration = (Word32, Word32) Source

ROSDuration is a tuple of (seconds, nanoseconds)

fromROSTime :: FromROSTime a => ROSTime -> a Source

diffROSTime :: ROSTime -> ROSTime -> ROSDuration Source

timeDiff t1 t2 computes the difference t1 - t2.

getROSTime :: IO ROSTime Source

Get the current POSIX time.

diffSeconds :: ROSTime -> ROSTime -> Double Source

Compute the difference in seconds between two ROSTime values. The application diffSeconds tStop tStart computes the time interval tStop - tStart.