TimeProvider

interface TimeProvider

Class to provide time that can be overridden to mock or change its behaviour.

Inheritors

Types

Link copied to clipboard

Functions

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

Returns a DateTime for this provider.