From 043eadd149b6e652bc5fd598b3aad9b9268b58e4 Mon Sep 17 00:00:00 2001 From: Him188 Date: Wed, 27 Nov 2019 20:27:54 +0800 Subject: [PATCH] Fix currentTime --- .../commonMain/kotlin/net.mamoe.mirai/utils/PlatformUtils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/PlatformUtils.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/PlatformUtils.kt index affdaee0d..a3ca0957d 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/PlatformUtils.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/PlatformUtils.kt @@ -10,7 +10,7 @@ import kotlinx.io.core.Input /** * 时间戳 */ -val currentTime: Long = DateTime.nowUnixLong() +inline val currentTime: Long get() = DateTime.nowUnixLong() /** * 设备名