In Java, we can use System.currentTimeMillis() to get the current timestamp in Milliseconds since epoch time which is -
System.currentTimeMillis()
the difference, m
Include and use the time function.
time