SystemClock.elapsedRealtime(); // 系统从启动到现在的时间,单位:ms SystemClock.uptimeMillis(); // 系统从启动到当前处于非休眠期的时间,单位:ms