方法1: System.currentTimeMillis(); 方法2:Calendar.getInstance().getTimeInMillis(); 方法3: new Date().getTime(); 方法1速度最快,方法2速度最慢。