@Retention(RUNTIME) @Target({FIELD,TYPE,METHOD}) public @interface Timespan
Event field annotation, specifies that the value is a duration.
- Since:
- 9
-
Field Summary
Fields Modifier and Type Fields Description static String
MICROSECONDS
Unit for microseconds.static String
MILLISECONDS
Unit for milliseconds.static String
NANOSECONDS
Unit for nanoseconds.static String
SECONDS
Unit for seconds.static String
TICKS
Unit for ticks. -
Optional Element Summary
-
Field Details
-
TICKS
Unit for ticks. -
SECONDS
Unit for seconds. -
MILLISECONDS
Unit for milliseconds. -
NANOSECONDS
Unit for nanoseconds. -
MICROSECONDS
Unit for microseconds.
-
-
Element Details
-
value
String valueReturns the unit of measure for the time span.By default, the unit is nanoseconds.
- Returns:
- the time span unit, default
#NANOSECONDS
, notnull
- Default:
- "NANOSECONDS"
-