ouroboros-consensus-0.1.0.0: Consensus layer for the Ouroboros blockchain protocol
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Consensus.BlockchainTime.WallClock.Types

Synopsis

System time

newtype SystemStart Source #

System start

Slots are counted from the system start.

Constructors

SystemStart 

Instances

Instances details
Eq SystemStart Source # 
Instance details

Defined in Ouroboros.Consensus.BlockchainTime.WallClock.Types

Show SystemStart Source # 
Instance details

Defined in Ouroboros.Consensus.BlockchainTime.WallClock.Types

Generic SystemStart Source # 
Instance details

Defined in Ouroboros.Consensus.BlockchainTime.WallClock.Types

Associated Types

type Rep SystemStart :: Type -> Type #

NoThunks SystemStart Source # 
Instance details

Defined in Ouroboros.Consensus.BlockchainTime.WallClock.Types

type Rep SystemStart Source # 
Instance details

Defined in Ouroboros.Consensus.BlockchainTime.WallClock.Types

type Rep SystemStart = D1 ('MetaData "SystemStart" "Ouroboros.Consensus.BlockchainTime.WallClock.Types" "ouroboros-consensus-0.1.0.0-GfJNvFcM6lj2s5utKAUPEp" 'True) (C1 ('MetaCons "SystemStart" 'PrefixI 'True) (S1 ('MetaSel ('Just "getSystemStart") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime)))

Relative time

newtype RelativeTime Source #

RelativeTime is time relative to the SystemStart

Instances

Instances details
Eq RelativeTime Source # 
Instance details

Defined in Ouroboros.Consensus.BlockchainTime.WallClock.Types

Ord RelativeTime Source # 
Instance details

Defined in Ouroboros.Consensus.BlockchainTime.WallClock.Types

Show RelativeTime Source # 
Instance details

Defined in Ouroboros.Consensus.BlockchainTime.WallClock.Types

Generic RelativeTime Source # 
Instance details

Defined in Ouroboros.Consensus.BlockchainTime.WallClock.Types

Associated Types

type Rep RelativeTime :: Type -> Type #

NoThunks RelativeTime Source # 
Instance details

Defined in Ouroboros.Consensus.BlockchainTime.WallClock.Types

Serialise RelativeTime Source # 
Instance details

Defined in Ouroboros.Consensus.BlockchainTime.WallClock.Types

type Rep RelativeTime Source # 
Instance details

Defined in Ouroboros.Consensus.BlockchainTime.WallClock.Types

type Rep RelativeTime = D1 ('MetaData "RelativeTime" "Ouroboros.Consensus.BlockchainTime.WallClock.Types" "ouroboros-consensus-0.1.0.0-GfJNvFcM6lj2s5utKAUPEp" 'True) (C1 ('MetaCons "RelativeTime" 'PrefixI 'True) (S1 ('MetaSel ('Just "getRelativeTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NominalDiffTime)))

Get current time (as RelativeTime)

data SystemTime m Source #

System time

Slots are counted from the system start.

Constructors

SystemTime 

Fields

Slot length

data SlotLength Source #

Slot length

Instances

Instances details
Eq SlotLength Source # 
Instance details

Defined in Ouroboros.Consensus.BlockchainTime.WallClock.Types

Show SlotLength Source # 
Instance details

Defined in Ouroboros.Consensus.BlockchainTime.WallClock.Types

Generic SlotLength Source # 
Instance details

Defined in Ouroboros.Consensus.BlockchainTime.WallClock.Types

Associated Types

type Rep SlotLength :: Type -> Type #

NoThunks SlotLength Source # 
Instance details

Defined in Ouroboros.Consensus.BlockchainTime.WallClock.Types

Serialise SlotLength Source # 
Instance details

Defined in Ouroboros.Consensus.BlockchainTime.WallClock.Types

type Rep SlotLength Source # 
Instance details

Defined in Ouroboros.Consensus.BlockchainTime.WallClock.Types

type Rep SlotLength = D1 ('MetaData "SlotLength" "Ouroboros.Consensus.BlockchainTime.WallClock.Types" "ouroboros-consensus-0.1.0.0-GfJNvFcM6lj2s5utKAUPEp" 'True) (C1 ('MetaCons "SlotLength" 'PrefixI 'True) (S1 ('MetaSel ('Just "getSlotLength") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NominalDiffTime)))

Conversions