mirror of
https://github.com/mamoe/mirai.git
synced 2025-04-24 20:43:33 +08:00
Improve performance
This commit is contained in:
parent
348d13a4c1
commit
fec3702ba9
mirai-core/src
androidMain/kotlin/net/mamoe/mirai/utils
jvmMain/kotlin/net/mamoe/mirai/utils
@ -94,3 +94,7 @@ actual fun ByteArray.unzip(offset: Int, length: Int): ByteArray {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 时间戳
|
||||
*/
|
||||
actual val currentTimeMillis: Long get() = System.currentTimeMillis()
|
@ -74,3 +74,8 @@ actual fun ByteArray.unzip(offset: Int, length: Int): ByteArray {
|
||||
return output.toByteArray()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 时间戳
|
||||
*/
|
||||
actual val currentTimeMillis: Long get() = System.currentTimeMillis()
|
Loading…
Reference in New Issue
Block a user