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

相关文章: