Time displayed in Logcat

前端 未结 6 666
野趣味
野趣味 2021-02-01 13:45

I need to get the Android device timestamp in the format hh:mm:ss:SS. I am able to view the time displayed in the Logcat of Eclipse. Is it the computer\'s time or is it the Andr

6条回答
  •  时光取名叫无心
    2021-02-01 14:11

    From the docs of logcat you can see that there is an option to specify how the output is formatted (-v).

    To get a timestamp, you can use the command

    logcat -v time
    

    This will prefix each message with a timestamp.

提交回复
热议问题