Skip to content

Instantly share code, notes, and snippets.

@shangeethsivan
Last active May 20, 2019 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shangeethsivan/3225bc4681c32ccd63beb89dc0ff6c8f to your computer and use it in GitHub Desktop.
Save shangeethsivan/3225bc4681c32ccd63beb89dc0ff6c8f to your computer and use it in GitHub Desktop.
// Sample code to measure code execution time.
void onBindViewHolder(){
long startTime = System.currentTimeMillis();
// Your code
long endTime = System.currentTimeMillis();
System.out.println("Computational time for onBindViewHolder is "+(endTime-startTime)+" ms");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment