import java.text.SimpleDateFormat;
import java.util.Date;
public class aaaa {
public static void main(String[] args) throws Exception {
long start = System.currentTimeMillis();
for (int i = 0; i < 5; i++) {
Thread.sleep(10);
}
long end = System.currentTimeMillis();
System.out.println("for循环耗时" + (end - start) + "毫秒");
Date nowTime = new Date(System.currentTimeMillis());
SimpleDateFormat sdFormatter = new SimpleDateFormat("yyyy-MM-dd");
String now = sdFormatter.format(nowTime);
System.out.println(now);
File f = new File("c:\\"+System.currentTimeMillis() + "");
f.createNewFile();
}
}