Skip to content

Instantly share code, notes, and snippets.

@LeonidIvankin
Created June 5, 2022 20:17
Show Gist options
  • Save LeonidIvankin/51b6b1e8dc288fb1decf7cbcb2ddd563 to your computer and use it in GitHub Desktop.
Save LeonidIvankin/51b6b1e8dc288fb1decf7cbcb2ddd563 to your computer and use it in GitHub Desktop.
package com.leonidivankin.draftsandroid.articles.benchmark
import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import com.leonidivankin.draftsandroid.R
class XmlWidthActivity : AppCompatActivity() {
var time = 0L
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
title = "xml, width"
time = System.currentTimeMillis()
setContentView(R.layout.activity_xml_width)
}
override fun onResume() {
super.onResume()
Log.d("Benchmark", "XmlWidthActivity: ${System.currentTimeMillis() - time}")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment