diff options
author | Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> | 2024-04-01 21:10:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-01 21:10:57 +0200 |
commit | 6ac1fba772a35fb55cd639f8b592968adfbf153b (patch) | |
tree | e8fe1005a6fd858df29d7da7b13125540b532a5e /src/main/java/at/hannibal2/skyhanni/utils | |
parent | 1f96d1b4a7e0281fe59e0cb3658c104a5e7a75a4 (diff) | |
download | skyhanni-6ac1fba772a35fb55cd639f8b592968adfbf153b.tar.gz skyhanni-6ac1fba772a35fb55cd639f8b592968adfbf153b.tar.bz2 skyhanni-6ac1fba772a35fb55cd639f8b592968adfbf153b.zip |
Backend: Removed Old TimeMark (#1322)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/TimeMark.kt | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/TimeMark.kt b/src/main/java/at/hannibal2/skyhanni/utils/TimeMark.kt deleted file mode 100644 index be5f59322..000000000 --- a/src/main/java/at/hannibal2/skyhanni/utils/TimeMark.kt +++ /dev/null @@ -1,16 +0,0 @@ -package at.hannibal2.skyhanni.utils - -import kotlin.time.Duration -import kotlin.time.Duration.Companion.milliseconds - -data class TimeMark(val long: Long) { - - fun hasNeverHappened() = long == 0L - fun passedTime() = if (long == 0L) Duration.Companion.INFINITE else (System.currentTimeMillis() - long).milliseconds - - companion object { - - fun never() = TimeMark(0) - fun now() = TimeMark(System.currentTimeMillis()) - } -} |