Last active
May 29, 2019 17:49
-
-
Save talosdev/f5afccd489668e984456611aa2b6cb2a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| /** | |
| * Executes the given [block] and returns elapsed time in milliseconds. | |
| */ | |
| public inline fun measureTimeMillis(block: () -> Unit): Long { | |
| val start = System.currentTimeMillis() | |
| block() | |
| return System.currentTimeMillis() - start | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment