Module jdk.jfr
Package jdk.jfr

Annotation Type Timespan


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

  • Element Details

    • value

      String value
      Returns the unit of measure for the time span.

      By default, the unit is nanoseconds.

      Returns:
      the time span unit, default #NANOSECONDS, not null
      Default:
      "NANOSECONDS"