     var startedAt : NSDate? = nil
     var currentImage : NSImage? = nil
     
-    var seconds : NSTimeInterval = 59*60
+    var seconds : NSTimeInterval = 60*60
     
     func applicationDidFinishLaunching(aNotification: NSNotification) {
         // Insert code here to initialize your application

            userInfo: nil,
            repeats: true)
        
        dateFormatter.dateFormat = "mm:ss"
    }

    func applicationWillTerminate(aNotification: NSNotification) {

        var interval : NSTimeInterval = 0
        
        if let started = startedAt {
            interval = NSDate().timeIntervalSinceDate(started)
            if interval > seconds {
                NSLog("--> time is up!!!")
                startedAt = nil
                interval = 0
            }
        } else {
            blinkImage()
        }
        
        let date:NSDate = NSDate(timeIntervalSince1970: seconds - interval)
        
        let text = dateFormatter.stringFromDate(date)
        statusItem.button?.title = text
    }
    
    func blinkImage() {
        if currentImage == wImage {
            currentImage = bImage
        } else {
            currentImage = wImage
        }
        statusItem.button?.image = currentImage
    }
    
    func dateFormat() {
        if seconds >= 60*60 {
            dateFormatter.dateFormat = "HH:mm:ss"
        } else {
            dateFormatter.dateFormat = "mm:ss"
        }
    }
}
