java_system.currenttimemillis

Java System.currentTimeMillis()

Java System.currentTimeMillis() is a method that returns the current time in milliseconds since the Unix epoch (January 1, 1970). It is often used for performance measurement or to generate timestamps. Introduced in Java 1995 with Java 1.0, currentTimeMillis() is a simple and efficient way to obtain the system clock's current time, though it is not suitable for high-precision measurements, for which Java System.nanoTime() is preferred.

https://docs.oracle.com/javase/8/docs/api/java/lang/System.html

java_system.currenttimemillis.txt · Last modified: 2025/02/01 06:47 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki