diff options
Diffstat (limited to 'src/graphui/classes/com/jogamp/graph/ui/Tooltip.java')
-rw-r--r-- | src/graphui/classes/com/jogamp/graph/ui/Tooltip.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/Tooltip.java b/src/graphui/classes/com/jogamp/graph/ui/Tooltip.java index 6c1603800..88cfeac99 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/Tooltip.java +++ b/src/graphui/classes/com/jogamp/graph/ui/Tooltip.java @@ -54,8 +54,7 @@ public abstract class Tooltip { /** Starts the timer. */ public void start() { - final long t0 = Clock.currentMillis(); - this.delayT1 = t0 + delayMS; + this.delayT1 = Clock.currentMillis() + delayMS; } /** @@ -66,8 +65,7 @@ public abstract class Tooltip { if( 0 == delayT1 ) { return false; } - final long t1 = Clock.currentMillis(); - if( t1 < delayT1 ) { + if( Clock.currentMillis() < delayT1 ) { return false; } this.delayT1 = 0; |