foundation-0.0.19: Alternative prelude with batteries and no dependencies

LicenseBSD-style
MaintainerFoundation maintainers
Safe HaskellNone
LanguageHaskell2010

Foundation.Time.Types

Description

An implementation of a timing framework

Synopsis

Documentation

newtype NanoSeconds Source #

An amount of nanoseconds

Constructors

NanoSeconds Word64 

Instances

Bounded NanoSeconds Source # 
Enum NanoSeconds Source # 
Eq NanoSeconds Source # 
Ord NanoSeconds Source # 
Show NanoSeconds Source # 
PrimType NanoSeconds Source # 
Additive NanoSeconds Source # 

newtype Seconds Source #

An amount of nanoseconds

Constructors

Seconds Word64 

Instances

Bounded Seconds Source # 
Enum Seconds Source # 
Eq Seconds Source # 

Methods

(==) :: Seconds -> Seconds -> Bool #

(/=) :: Seconds -> Seconds -> Bool #

Ord Seconds Source # 
Show Seconds Source # 
PrimType Seconds Source # 
Additive Seconds Source # 

Methods

azero :: Seconds #

(+) :: Seconds -> Seconds -> Seconds #

scale :: IsNatural n => n -> Seconds -> Seconds #