Module jdk.jfr
Package jdk.jfr

Annotation Interface Timespan


@Retention(RUNTIME) @Target({FIELD,TYPE,METHOD}) public @interface Timespan
Event field annotation, specifies that the value is a duration.

If the annotated value equals Long.MAX_VALUE, it represents forever.

Since:
9
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Returns the unit of measure for the time span.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Unit for microseconds.
    static final String
    Unit for milliseconds.
    static final String
    Unit for nanoseconds.
    static final String
    Unit for seconds.
    static final String
    Unit for ticks.