Package hudson.util

Class ClockDifference


  • @ExportedBean
    public final class ClockDifference
    extends Object
    Represents a clock difference. Immutable.
    Author:
    Kohsuke Kawaguchi
    • Field Detail

      • diff

        @Exported
        public final long diff
        The difference in milliseconds. Positive value means the agent is behind the master, negative value means the agent is ahead of the master.
    • Constructor Detail

      • ClockDifference

        public ClockDifference​(long value)
    • Method Detail

      • isDangerous

        public boolean isDangerous()
        Returns true if the difference is big enough to be considered dangerous.
      • abs

        public long abs()
        Gets the absolute value of diff.
      • toString

        public String toString()
        Gets the clock difference in HTML string.
        Overrides:
        toString in class Object
      • toHtml

        public String toHtml()
      • toHtml

        public static String toHtml​(Node d)