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

      
      // CGContextAddArc(context, centerPoint.x, centerPoint.y, radius, start, end, 0)
      context?.addArc(center: centerPoint, radius: radius, startAngle: start, endAngle: end, clockwise: true)
      CGContextStrokePath(context)
      
      
      let labelFontAttributes: NSDictionary = [ NSForegroundColorAttributeName: labelFontColor,

  // TODO: Check reference day as parameter!
  func updateCounter() {
    
    let now = NSDate.timeIntervalSinceReferenceDate
    totalTime += now - lastInterval
    lastInterval = now
    
