@Retention(RUNTIME) @Target({FIELD,TYPE,METHOD}) public @interface Timespan
If the annotated value equals Long.MAX_VALUE
, it represents forever.
Modifier and Type | Optional Element | Description |
---|---|---|
String |
value |
Returns the unit of measure for the time span. |
Modifier and Type | Field | Description |
---|---|---|
static final String |
MICROSECONDS |
Unit for microseconds. |
static final String |
MILLISECONDS |
Unit for milliseconds. |
static final String |
NANOSECONDS |
Unit for nanoseconds. |
static final String |
SECONDS |
Unit for seconds. |
static final String |
TICKS |
Unit for ticks. |
static final String TICKS
static final String SECONDS
static final String MILLISECONDS
static final String NANOSECONDS
static final String MICROSECONDS
String value
By default, the unit is nanoseconds.
NANOSECONDS
, not null
"NANOSECONDS"
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/jdk.jfr/jdk/jfr/Timespan.html