System.currentTimeMillis()与SystemClock.uptimeMillis()
1、两种时间的区别:1、System.currentTimeMillis()获取的是系统的时间,可以使用SystemClock.setCurrentTimeMillis(longmillis)进行设置。如果使用System.currentTimeMillis()来获取当前时间进行计时,应该考虑监听ACTION_TIME_TICK,ACTION_TIME_CHANGED和ACTION_TIMEZON