packages feed

tilia-0.2.0.0: corpora/vendored/cpp/comment/comment-above-a-constructor-after-an-equals-sign-in-each-branch.hs

{-# LANGUAGE CPP #-}

module Foundation.Time.StopWatch (StopWatchPrecise) where

-- | A precise stop watch.
newtype StopWatchPrecise =
#if defined(darwin_HOST_OS)
    StopWatchPrecise Word64
#elif defined(mingw32_HOST_OS)
    -- contain 2 LARGE_INTEGER (int64_t)
    StopWatchPrecise (MutableBlock Word8 (PrimState IO))
#else
    -- contains 2 timespec (16 bytes)
    StopWatchPrecise (MutableBlock Word8 (PrimState IO))
#endif