title: How to get Android system uptime and realtime from command line?
body: <p>I'm writing a script containing several "adb shell" command. I also want to record the time when program execute these command in a form of realtime and uptime. I know I can get uptime and realtime through SystemClock:</p>
  
  <pre><code>SystemClock.uptimeMillis();
  SystemClock.elapsedRealtime();
  </code></pre>
  
  <p>Is there any way I can get these information from the command line?</p>
  
  <p>Thanks a lot!</p>