StaticClock

class StaticClock(var time: Long, formatted: String) : Clock

Implementation of Clock for unit tests

Constructors

Link copied to clipboard
constructor(time: Long, formatted: String)

Types

Link copied to clipboard
class ScheduledTask(val time: Long, val task: () -> Unit)

Functions

Link copied to clipboard
open override fun currentTimeMillis(): Long
Link copied to clipboard
fun execute(advance: Long = 0)
Link copied to clipboard
open override fun isoTime(milliseconds: Long): String
Link copied to clipboard
open override fun schedule(delay: Long, task: () -> Unit): Clock.Cancellable

Properties

Link copied to clipboard
var time: Long