{-# LINE 1 "libraries/base/GHC/Clock.hsc" #-}
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE NoImplicitPrelude #-}
module GHC.Clock
( getMonotonicTime
, getMonotonicTimeNSec
) where
import GHC.Base
import GHC.Real
import Data.Word
getMonotonicTime :: IO Double
getMonotonicTime :: IO Double
getMonotonicTime = do Word64
w <- IO Word64
getMonotonicTimeNSec
Double -> IO Double
forall (m :: * -> *) a. Monad m => a -> m a
return (Word64 -> Double
forall a b. (Integral a, Num b) => a -> b
fromIntegral Word64
w Double -> Double -> Double
forall a. Fractional a => a -> a -> a
/ Double
1000000000)
foreign import ccall unsafe "getMonotonicNSec"
getMonotonicTimeNSec :: IO Word64