ouroboros-consensus-0.1.0.1: Consensus layer for the Ouroboros blockchain protocol
Safe Haskell None
Language Haskell2010

Ouroboros.Consensus.BlockchainTime.WallClock.Types

Synopsis

System time

newtype SystemStart Source #

System start

Slots are counted from the system start.

Instances

Instances details
Eq SystemStart
Instance details

Defined in Cardano.Slotting.Time

Show SystemStart
Instance details

Defined in Cardano.Slotting.Time

Generic SystemStart
Instance details

Defined in Cardano.Slotting.Time

ToCBOR SystemStart
Instance details

Defined in Cardano.Slotting.Time

FromCBOR SystemStart
Instance details

Defined in Cardano.Slotting.Time

NoThunks SystemStart
Instance details

Defined in Cardano.Slotting.Time

Serialise SystemStart
Instance details

Defined in Cardano.Slotting.Time

type Rep SystemStart
Instance details

Defined in Cardano.Slotting.Time

type Rep SystemStart = D1 (' MetaData "SystemStart" "Cardano.Slotting.Time" "cardano-slotting-0.1.0.2-j5NuF73p5IFfcfvmth6tS" ' 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
Instance details

Defined in Cardano.Slotting.Time

Ord RelativeTime
Instance details

Defined in Cardano.Slotting.Time

Show RelativeTime
Instance details

Defined in Cardano.Slotting.Time

Generic RelativeTime
Instance details

Defined in Cardano.Slotting.Time

NoThunks RelativeTime
Instance details

Defined in Cardano.Slotting.Time

Serialise RelativeTime
Instance details

Defined in Cardano.Slotting.Time

type Rep RelativeTime
Instance details

Defined in Cardano.Slotting.Time

type Rep RelativeTime = D1 (' MetaData "RelativeTime" "Cardano.Slotting.Time" "cardano-slotting-0.1.0.2-j5NuF73p5IFfcfvmth6tS" ' 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

Conversions

opaque

data SlotLength Source #

Slot length

Instances

Instances details
Eq SlotLength
Instance details

Defined in Cardano.Slotting.Time

Show SlotLength
Instance details

Defined in Cardano.Slotting.Time

Generic SlotLength
Instance details

Defined in Cardano.Slotting.Time

NoThunks SlotLength
Instance details

Defined in Cardano.Slotting.Time

Serialise SlotLength
Instance details

Defined in Cardano.Slotting.Time

type Rep SlotLength
Instance details

Defined in Cardano.Slotting.Time

type Rep SlotLength = D1 (' MetaData "SlotLength" "Cardano.Slotting.Time" "cardano-slotting-0.1.0.2-j5NuF73p5IFfcfvmth6tS" ' True ) ( C1 (' MetaCons "SlotLength" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "getSlotLength") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 NominalDiffTime )))