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 Details

    • 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 Details

    • Timestamp

      public Timestamp(long elapsedMillis, long millisSinceEpoch)
      Create a Timestamp.
      Parameters:
      elapsedMillis - the elapsed time in milliseconds since the start of the build
      millisSinceEpoch - the clock time in milliseconds since midnight, January 1, 1970 UTC
    • Timestamp

      public Timestamp(Long elapsedMillis, long millisSinceEpoch)
      Create a Timestamp.
      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