13. System.currentTimeMillis()
时间: 2023-10-25 22:39:31 浏览: 113
获取当前系统本地时间,精确到毫秒的实例
System.currentTimeMillis() is a method in Java that returns the current time in milliseconds since January 1, 1970, 00:00:00 GMT (the Unix epoch). It is used to measure the time elapsed between two events, or to generate unique timestamps for different events. It is a static method and can be called from any class or method without the need for creating an instance of the System class.
阅读全文