public class Millis
extends com.oracle.common.util.Duration
Millis
is a specialized Duration
whose default constructor assumes that the specified units of time (when the unit magnitude is not specified) are milliseconds.
Note: This class is provided to simplify and support backwards compatibility during the injection of millisecond-based units of time into appropriate classes. This class is not designed for general purpose representation of units of time. For general purpose units of time, please use the Duration
class.
Constructor and Description |
---|
Millis(com.oracle.common.util.Duration d)
Constructs a
Millis based on another Duration . |
Millis(String s)
Constructs a
Millis representing a Duration measured in milliseconds. |
Modifier and Type | Method and Description |
---|---|
long |
get()
Obtain the
Duration in units of milliseconds. |
public Millis(com.oracle.common.util.Duration d)
Millis
based on another Duration
.d
- the Duration