If the annotated value equals Long.MAX_VALUE, it represents forever.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | MICROSECONDS
Unit for microseconds. |
| public static final String | MILLISECONDS
Unit for milliseconds. |
| public static final String | NANOSECONDS
Unit for nanoseconds. |
| public static final String | SECONDS
Unit for seconds. |
| public static final String | TICKS
Unit for ticks. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the time span unit, defaultNANOSECONDSReturns the unit of measure for the time span. |
| MICROSECONDS | back to summary |
|---|---|
| public static final String MICROSECONDS Unit for microseconds. | |
| MILLISECONDS | back to summary |
|---|---|
| public static final String MILLISECONDS Unit for milliseconds. | |
| NANOSECONDS | back to summary |
|---|---|
| public static final String NANOSECONDS Unit for nanoseconds. | |
| SECONDS | back to summary |
|---|---|
| public static final String SECONDS Unit for seconds. | |
| TICKS | back to summary |
|---|---|
| public static final String TICKS Unit for ticks. | |
| value | back to summary |
|---|---|
| public String value() Returns the unit of measure for the time span. By default, the unit is nanoseconds.
| |