Package hudson.plugins.timestamper
Class Timestamp
java.lang.Object
hudson.plugins.timestamper.Timestamp
A time-stamp, consisting of the elapsed time and the clock time.
- Author:
- Steven G. Brown
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal long
The elapsed time in milliseconds since the start of the build.final boolean
Whether the elapsed time is known.final long
The clock time in milliseconds since midnight, January 1, 1970 UTC. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
elapsedMillis
public final long elapsedMillisThe elapsed time in milliseconds since the start of the build. -
elapsedMillisKnown
public final boolean elapsedMillisKnownWhether the elapsed time is known. -
millisSinceEpoch
public final long millisSinceEpochThe clock time in milliseconds since midnight, January 1, 1970 UTC.
-
-
Constructor Details
-
Timestamp
public Timestamp(long elapsedMillis, long millisSinceEpoch) Create aTimestamp
.- Parameters:
elapsedMillis
- the elapsed time in milliseconds since the start of the buildmillisSinceEpoch
- the clock time in milliseconds since midnight, January 1, 1970 UTC
-
Timestamp
Create aTimestamp
.- Parameters:
elapsedMillis
- the elapsed time in milliseconds since the start of the build (null if unknown)millisSinceEpoch
- the clock time in milliseconds since midnight, January 1, 1970 UTC
-
-
Method Details