Package hudson.plugins.timestamper
Class Timestamp
- java.lang.Object
-
- hudson.plugins.timestamper.Timestamp
-
@Immutable public final class Timestamp extends Object
A time-stamp, consisting of the elapsed time and the clock time.- Author:
- Steven G. Brown
-
-
Field Summary
Fields Modifier and Type Field Description long
elapsedMillis
The elapsed time in milliseconds since the start of the build.boolean
elapsedMillisKnown
Whether the elapsed time is known.long
millisSinceEpoch
The clock time in milliseconds since midnight, January 1, 1970 UTC.
-
-
-
Field Detail
-
elapsedMillis
public final long elapsedMillis
The elapsed time in milliseconds since the start of the build.
-
elapsedMillisKnown
public final boolean elapsedMillisKnown
Whether the elapsed time is known.
-
millisSinceEpoch
public final long millisSinceEpoch
The clock time in milliseconds since midnight, January 1, 1970 UTC.
-
-
Constructor Detail
-
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
-
-