fun main() {
val timeCost = measureTimeMillis {
test()
}
println("耗时:$timeCost")
}
fun test() {
sleep(500)
}
fun main() {
val timeCost = measureTimeMillis {
test()
}
println("耗时:$timeCost")
}
fun test() {
sleep(500)
}
本文标题:Kotlin打印方法执行耗时
本文链接:https://www.haomeiwen.com/subject/ggsvmktx.html
网友评论