Top Description Fields Methods
jdk.jfr

public @Interface Timestamp

extends Annotation
Annotations
@MetadataDefinition
@ContentType
@Label:Timestamp
@Description:A point in time
@Retention:RUNTIME
@Target:FIELD, TYPE, METHOD
Imports
java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target

Event field annotation, specifies that the value is a point in time.
Since
9

Field Summary

Modifier and TypeField and Description
public static final String
MILLISECONDS_SINCE_EPOCH

The unit for the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC.

public static final String
TICKS

The unit for the number of ticks that have transpired since some arbitrary starting date.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

time stamp unit, not null
value
()

Unit for the time stamp.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Field Detail

MILLISECONDS_SINCE_EPOCHback to summary
public static final String MILLISECONDS_SINCE_EPOCH

The unit for the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC.

TICKSback to summary
public static final String TICKS

The unit for the number of ticks that have transpired since some arbitrary starting date.

Method Detail

valueback to summary
public String value()

Unit for the time stamp.

Returns:String

time stamp unit, not null