From ead6762eb1c005914b05f9d3c29f334989c67513 Mon Sep 17 00:00:00 2001 From: nea Date: Tue, 16 May 2023 01:23:43 +0200 Subject: Replace references to NEU with Firmament --- src/main/kotlin/moe/nea/notenoughupdates/util/TimeMark.kt | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 src/main/kotlin/moe/nea/notenoughupdates/util/TimeMark.kt (limited to 'src/main/kotlin/moe/nea/notenoughupdates/util/TimeMark.kt') diff --git a/src/main/kotlin/moe/nea/notenoughupdates/util/TimeMark.kt b/src/main/kotlin/moe/nea/notenoughupdates/util/TimeMark.kt deleted file mode 100644 index 5196606..0000000 --- a/src/main/kotlin/moe/nea/notenoughupdates/util/TimeMark.kt +++ /dev/null @@ -1,15 +0,0 @@ -package moe.nea.notenoughupdates.util - -import kotlin.time.Duration -import kotlin.time.ExperimentalTime -import kotlin.time.TimeSource - -@OptIn(ExperimentalTime::class) -class TimeMark private constructor(private val timeMark: TimeSource.Monotonic.ValueTimeMark?) { - fun passedTime() = timeMark?.elapsedNow() ?: Duration.INFINITE - - companion object { - fun now() = TimeMark(TimeSource.Monotonic.markNow()) - fun farPast() = TimeMark(null) - } -} -- cgit