1
0
mirror of https://github.com/tateisu/SubwayTooter synced 2025-01-27 09:11:23 +01:00

fix onStart benchmark limit value

This commit is contained in:
tateisu 2021-06-18 15:01:26 +09:00
parent afc14e6e30
commit 6e99875a56

View File

@ -636,7 +636,7 @@ class ActMain : AppCompatActivity(),
}
}
private fun benchmark(caption: String, limit: Long = 0L, block: () -> Unit) {
private fun benchmark(caption: String, limit: Long = 100L, block: () -> Unit) {
val start = SystemClock.elapsedRealtime()
block()
val duration = SystemClock.elapsedRealtime() - start