Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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) 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.