android获取时间戳接口
作者:互联网
1.时间单位
秒:second
毫秒:Millisecond
微妙:Microsecond
纳秒:nanosecond
1秒 = 1000毫秒;1毫秒=1000微秒, 1微秒=1000纳秒,
2.获取时间戳
native层
nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC);
txt:这里返回的就是纳秒
java层
long now = SystemClock.uptimeMillis();
kernel层
s64 time = ktime_to_us(ktime_get());
标签:毫秒,纳秒,ktime,接口,获取,android,now,微秒,1000 来源: https://blog.csdn.net/KLYAZWS/article/details/121558676