                     if let _ = startDate,
                         let pausedDate = pausedDate
                     {
-                        let morePausedTimeInterval = NSDate().timeIntervalSince(pausedDate)
+                        let morePausedTimeInterval = Date().timeIntervalSince(pausedDate)
                         pausedTimeInterval += morePausedTimeInterval
                     }
                     pausedDate = nil

    var drawnFramesPerSecond: Double {
        var framesPerSecond = 0.0
        if let startDate = startDate {
            let interval = NSDate().timeIntervalSince(startDate)
            if interval > 0 {
                framesPerSecond = Double(drawnFrameCount) / interval
            }

    }
    
    func tick(timer: Timer) {
        let elapsed = Date().timeIntervalSince(startDate!) - pausedTimeInterval
        let complete = elapsed / duration
        finished = cycles > 0.0 && complete > cycles
        if isPaused || finished || superview == nil {
