       if !wasStopped {
        endArc = 0
       } else {
-       lastInterval = NSDate.timeIntervalSinceReferenceDate()
-      }
-      
-      if !timer.valid {
+       lastInterval = NSDate.timeIntervalSinceReferenceDate
+      }
+      
+      if !timer.isValid {
         print("Circle Graph View: Timer was NOT valid and was NOT running")
         printStatus()
         // let selector: Selector = "updateCounter"
-        timer = NSTimer.scheduledTimerWithTimeInterval(0.01,
+        timer = Timer.scheduledTimer(timeInterval: 0.01,
           target: self,
           selector: #selector(CircleGraphView.updateCounter),
           userInfo: nil,
           repeats: true)
-          lastInterval = NSDate.timeIntervalSinceReferenceDate()
+          lastInterval = NSDate.timeIntervalSinceReferenceDate
       } else {
         print("Circle Graph View: Timer >>was<< valid and was NOT running")
         printStatus()

      let delimiter = "\t:\t"
      let timeLabel: NSString = counterTimeValues.minutes + delimiter + counterTimeValues.seconds + delimiter + counterTimeValues.milliseconds
      let center = CGPoint(x:bounds.width/2, y: bounds.height/2)
      let size = timeLabel.sizeWithAttributes((labelFontAttributes as! [String : AnyObject]))

      timeLabel.drawInRect(CGRectMake(center.x - size.width/2,center.y - size.height/2,size.width,size.height), withAttributes: (labelFontAttributes as! [String : AnyObject]))
    
      
      

    var counterTime = totalTime
    let minutes = Int(counterTime / 60)
    
    counterTime -= (TimeInterval(minutes) * 60)
    let minutesValue = String(format: "%02d", minutes)
    
    let seconds = Int(counterTime)
    counterTime -= (TimeInterval(seconds))
    let secondsValue = String(format: "%02d", seconds)
    
    let milliseconds = Int(counterTime * 100)
