network-mux-0.3.0.0: Multiplexing library

Network.Mux.Time

Contents

Synopsis

# DiffTime

data DiffTime Source #

This is a length of time, as measured by a clock. Conversion functions will treat it as seconds. It has a precision of 10^-12 s.

#### Instances

Instances details
 Instance detailsDefined in Data.Time.Clock.Internal.DiffTime Methods Instance detailsDefined in Data.Time.Clock.Internal.DiffTime Methods Instance detailsDefined in Data.Time.Clock.Internal.DiffTime Methods Instance detailsDefined in Data.Time.Clock.Internal.DiffTime Methodsgfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → DiffTime → c DiffTime Source #gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c DiffTime Source #dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c DiffTime) Source #dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c DiffTime) Source #gmapT ∷ (∀ b. Data b ⇒ b → b) → DiffTime → DiffTime Source #gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → DiffTime → r Source #gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → DiffTime → r Source #gmapQ ∷ (∀ d. Data d ⇒ d → u) → DiffTime → [u] Source #gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → DiffTime → u Source #gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → DiffTime → m DiffTime Source #gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → DiffTime → m DiffTime Source #gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → DiffTime → m DiffTime Source # Instance detailsDefined in Data.Time.Clock.Internal.DiffTime Methods Instance detailsDefined in Data.Time.Clock.Internal.DiffTime Methods Instance detailsDefined in Data.Time.Clock.Internal.DiffTime Methods Instance detailsDefined in Data.Time.Clock.Internal.DiffTime Methodsround ∷ Integral b ⇒ DiffTime → b Source #floor ∷ Integral b ⇒ DiffTime → b Source # Instance detailsDefined in Data.Time.Clock.Internal.DiffTime Methods Instance detailsDefined in Data.Time.Clock.Internal.DiffTime Methodsrnf ∷ DiffTime → () Source #

# Compact timestamp

This is a slightly peculiar operation: it returns the number of microseconds since an arbitrary epoch, modulo 2^32. This number of microseconds wraps every ~35 minutes.

The purpose is to give a compact timestamp (compact to send over the wire) for measuring time differences on the order of seconds or less.