foundation-0.0.15: 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 #

An amount of nanoseconds

Constructors

NanoSeconds Word64 

Instances

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

newtype Seconds #

An amount of nanoseconds

Constructors

Seconds Word64 

Instances

Bounded Seconds # 
Enum Seconds # 
Eq Seconds # 

Methods

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

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

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

Methods

azero :: Seconds #

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

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