Java Utililty Methods Millisecond Current Get

List of utility methods to do Millisecond Current Get

Description

The list of methods to do Millisecond Current Get are organized into topic(s).

Method

longcurrentTimeMillis()
current Time Millis
currentTimeMillis = System.currentTimeMillis();
if (lastTimeMillis < currentTimeMillis) {
    lastTimeMillis = currentTimeMillis;
} else {
    lastTimeMillis++;
lastTimeMicros = lastTimeMillis * 1000;
lastTimeNanos = lastTimeMicros * 1000;
...
doublecurrentTimeMillis()
current Time Millis
return nanosToMillis(System.nanoTime());
LongcurrentTimeMillis()
current Time Millis
return System.currentTimeMillis();
longcurrentTimeMillis()
current Time Millis
long l = System.currentTimeMillis();
if (l < lastTimeUpdate)
    timeCorrection += lastTimeUpdate - l;
lastTimeUpdate = l;
return l + timeCorrection;
longcurrentTimeMillis()
current Time Millis
return System.currentTimeMillis() + (long) timeZoneOffset;
longcurrentTimeMillis()
current Time Millis
return CURRENT_TIME;
intcurrentTimeMillis()
Gets a reference to current time as int.
return (int) (System.currentTimeMillis() % Integer.MAX_VALUE);
longcurrentTimeMillis()
Returns the current time in seconds since the epoch, or a mocked out equivalent.
if (mockTime != null)
    return mockTime.getTime();
else
    return System.currentTimeMillis();
longcurrentTimeMillisUTC()
current Time Millis UTC
return currentTimeMillis() / 1000L;
longgetCurrentMillis()
Returns the current time in milliseconds.
return System.currentTimeMillis();