asTimeSource

fun Clock.asTimeSource(): TimeSource

Returns a TimeSource that uses this Clock to mark a time instant and to find the amount of time elapsed since that mark.