I am writing a script containing several adb shell commands. I also want to record the time when the program executes this command in the form of real time and uptime. I know that I can get uptime in real time through SystemClock:
SystemClock.uptimeMillis(); SystemClock.elapsedRealtime();
Is there any way to get this information from the command line?
Thanks a lot!
source share