Android各代码层获取系统时间的方法
2017-09-10 本文已影响35人
网路元素
1. java层:long now =SystemClock.uptimeMillis();
2. native层:nsecs_tnow =systemTime(SYSTEM_TIME_MONOTONIC);
3. 驱动层:s64 time = ktime_to_us(ktime_get());
1. java层:long now =SystemClock.uptimeMillis();
2. native层:nsecs_tnow =systemTime(SYSTEM_TIME_MONOTONIC);
3. 驱动层:s64 time = ktime_to_us(ktime_get());