public static interface TimeUtils.Now
currentTimeMillis()
.Modifier and Type | Method and Description |
---|---|
long |
currentTimeMillis()
Returns the number of milliseconds since epoch.
|
long currentTimeMillis()
Note that the default
(production)
instance has an implementation that returns
System.currentTimeMillis()
;
Alternate implementations may provide more control over the values returned, to allow for deterministic unit tests.
Copyright © 2015. All Rights Reserved.