BIOCatsClock

izumi.functional.bio.CatsConversions$.BIOCatsClock
trait BIOCatsClock[F[_, _], E] extends Clock[[_] =>> F[E, _$76]]

Attributes

Graph
Supertypes
trait Clock[[_] =>> F[E, _$76]]
trait Serializable
class Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Value members

Concrete methods

final override def monotonic: F[E, FiniteDuration]

Monotonic time subject to the law that (monotonic, monotonic).mapN(_ <= _)

Monotonic time subject to the law that (monotonic, monotonic).mapN(_ <= _)

Analogous to java.lang.System.nanoTime.

Attributes

Definition Classes
Clock
final override def realTime: F[E, FiniteDuration]

A representation of the current system time

A representation of the current system time

Analogous to java.lang.System.currentTimeMillis.

Attributes

Definition Classes
Clock

Inherited methods

def applicative: Applicative[F]

Attributes

Inherited from:
Clock
def realTimeInstant: F[Instant]

Attributes

Inherited from:
ClockPlatform (hidden)
def timed[A](fa: F[E, A]): F[(FiniteDuration, A)]

Returns an effect that completes with the result of the source together with the duration that it took to complete.

Returns an effect that completes with the result of the source together with the duration that it took to complete.

Attributes

fa

The effect which we wish to time the execution of

Inherited from:
Clock

Abstract fields

val Clock: Clock2[F]
val F: Applicative2[F]