Skip to content Skip to sidebar Skip to footer

When "am Start" A Activity,what The "total Time" Mean?

I launch a activity use: am start -W -n The console output: tangbincheng@tangbinchengdeMacBook-Pro:~$ adb shell shell@hwp6-t00:/ $ su root@hwp6-t00:/ # am start -W -n com.book

Solution 1:

search in android source code: You can find "thisTime/totalTime"

"thisTime": just current activity launched time

"totalTime":the activity you started may be on the bottom of activity stack. So it refers to the total time from activity searching to current activity launched.

finallong thisTime = curTime - displayStartTime;
finallong totalTime = stack.mLaunchStartTime != 0
        ? (curTime - stack.mLaunchStartTime) : thisTime;

Post a Comment for "When "am Start" A Activity,what The "total Time" Mean?"