亚行getevent时间格式 [英] adb getevent time format

查看:718
本文介绍了亚行getevent时间格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 亚行外壳getevent -tl

我运行上面的命令中并获得输出,我期望。时间戳,但是,是在奇数格式(这是托架的内部,下文)。什么时间格式,这是,我将如何去将其转换为人类可读的时间呢?

  [25475.498826]为/ dev /输入/ event6:EV_SYN SYN_REPORT 00000000


解决方案

时间戳是的timeval 格式。它的绝对值没有意义。它的目的是让计算独立事件之间的时间间隔。

adb shell getevent -tl

I'm running the command above and getting output as I'd expect. The timestamp, however, is in an odd format (it's inside of the brackets, below). What time format is this, and how would I go about converting it to a human readable time?

[   25475.498826] /dev/input/event6: EV_SYN       SYN_REPORT           00000000            

解决方案

The timestamp is in timeval format. Its absolute value has no meaning. Its purpose is to allow to calculate intervals between separate events.

这篇关于亚行getevent时间格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆