-
-
Save LeonidIvankin/51b6b1e8dc288fb1decf7cbcb2ddd563 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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