System.currentTimeMillis()获取毫秒值,但是其精度依赖操作系统
想实现较为精确的毫秒,可以采用 System.nanoTime()/1000000L
System.nanoTime()获取纳秒
https://blog.csdn.net/L_serein/article/details/6734185
https://blog.csdn.net/paul_lh/article/details/6419982
System.currentTimeMillis()获取毫秒值,但是其精度依赖操作系统
想实现较为精确的毫秒,可以采用 System.nanoTime()/1000000L
System.nanoTime()获取纳秒
https://blog.csdn.net/L_serein/article/details/6734185
https://blog.csdn.net/paul_lh/article/details/6419982
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。