The TimingLogger is useful to measure precisely the execution time of code blocks (or even just one line of code).
The Android docs show how it can be used. Below is a simple example:
The TimingLogger will not output anything unless it is manually enabled.
The following command enables the TimingLogger output for
1 adb shell setprop log.tag.MYTAG VERBOSE
TimingLogger is enabled and the application has started generating logs, we can view them with the
adb logcat -v time MYTAG:W *:S