Package hudson.util
Class ClockDifference
java.lang.Object
hudson.util.ClockDifference
Represents a clock difference. Immutable.
- Author:
 - Kohsuke Kawaguchi
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionfinal longThe difference in milliseconds.static final ClockDifference - 
Constructor Summary
Constructors - 
Method Summary
 
- 
Field Details
- 
diff
@Exported public final long diffThe difference in milliseconds. Positive value means the agent is behind the master, negative value means the agent is ahead of the master. - 
ZERO
 
 - 
 - 
Constructor Details
- 
ClockDifference
public ClockDifference(long value)  
 - 
 - 
Method Details
- 
isDangerous
public boolean isDangerous()Returns true if the difference is big enough to be considered dangerous. - 
abs
public long abs()Gets the absolute value ofdiff. - 
toString
Gets the clock difference in HTML string. - 
toHtml
 - 
toHtml
 - 
toHtml
Gets the clock difference in HTML string. This version handles nullClockDifference. 
 -