long now = System.currentTimeMillis();This is the number of milliseconds since Jan 1, 1970. Handy for timing things.
Programming Tips - Java: get the current time in milliseconds
Date: 2016apr8
Language: Java
Level: beginner
Keywords: millisecond, nanosecond, nanoseconds, seconds, thousandths, epoch
Q. Java: get the current time in milliseconds
A.