@Retention(RUNTIME) @Target({FIELD,TYPE,METHOD}) public @interface Timespan
Event field annotation, specifies that the value is a duration.
- Since:
- 9
-
Optional Element Summary
-
Field Summary
Fields Modifier and Type Field 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.
-
Field Details
-
TICKS
Unit for ticks.- See Also:
- Constant Field Values
-
SECONDS
Unit for seconds.- See Also:
- Constant Field Values
-
MILLISECONDS
Unit for milliseconds.- See Also:
- Constant Field Values
-
NANOSECONDS
Unit for nanoseconds.- See Also:
- Constant Field Values
-
MICROSECONDS
Unit for microseconds.- See Also:
- Constant Field Values
-
-
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"
-