         if let c = _cancelPreviousDelay {
             c()
         }
-        _cancelPreviousDelay = delay(1.5) {
+        _cancelPreviousDelay = delay(floatingViewTimeout) {
             if let (when, lifeTotal) = self._history.last {
                 self._baseline = lifeTotal
             }
             self._history.removeAll(keepCapacity: true)
             
             if let fv = self._floatingView {
-                UIView.animateWithDuration(0.2,
+                UIView.animateWithDuration(self.floatingViewHideTime,
                     animations: { fv.alpha = 0.0 },
                     completion: { _ in fv.removeFromSuperview() })
             

    
    func showOrExtendView() {
        if let p = parent where _floatingView == nil && _history.count > 1 {
            let fv = FloatingView(innerView:self._label, cornerRadius:6)
            
            fv.showInView(p) { floatingView in
                p.addConstraints([

import UIKit

class LifeTotalDeltaTracker {
    let floatingViewFontSize = 44
    let floatingViewTimeout = 1.7
    let floatingViewHideTime = 0.25
    
    private var _baseline = 0 // we show +/- x relative to this.
    private var _history = [(NSDate, Int)]()
    private var _floatingView:FloatingView?
