Companion

Functions

Link copied to clipboard
operator fun invoke(callback: () -> DateTime): TimeProvider

Constructs a TimeProvider from a callback producing a DateTime.

Link copied to clipboard
inline fun TimeProvider.measure(block: () -> Unit): TimeSpan
Link copied to clipboard
open override fun now(): DateTime

Returns a DateTime for this provider.