Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data TimedValue a = TimedValue {
- value :: a
- time :: Nanoseconds
- newtype Nanoseconds = Nanoseconds Integer
- measureTimedValue :: IO a -> IO (TimedValue a)
- measureTime :: IO () -> IO Nanoseconds
Documentation
data TimedValue a Source #
TimedValue | |
|
newtype Nanoseconds Source #
Nanoseconds, son!
Instances
Show Nanoseconds Source # | |
Defined in CodeGen.TimedValue showsPrec :: Int -> Nanoseconds -> ShowS # show :: Nanoseconds -> String # showList :: [Nanoseconds] -> ShowS # |
measureTimedValue :: IO a -> IO (TimedValue a) Source #
measureTime :: IO () -> IO Nanoseconds Source #