Skip to content

Instantly share code, notes, and snippets.

@talosdev
Created July 15, 2019 09:04
Show Gist options
  • Select an option

  • Save talosdev/c941d0f4b5f86d802de5508546488ed1 to your computer and use it in GitHub Desktop.

Select an option

Save talosdev/c941d0f4b5f86d802de5508546488ed1 to your computer and use it in GitHub Desktop.
val file: File =
measureTimeMillis({ time -> Log.d(TAG, "Read and decode took $time") }) {
readFile()
decodeFile()
// return the decoded file
File("/path/to/file")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment