 import UIKit
 import CoreLocation
 import MapKit
-//import HealthKit
+import HealthKit
 
 class ViewController: UIViewController, CLLocationManagerDelegate, MKMapViewDelegate {
 

		}
		
		var cs:[CLLocationCoordinate2D] = []
		cs.reserveCapacity(locs.count - 1)
		for (id, loc) in enumerate(locs) {
			if id == 0 {
				continue
			}
			cs.append(loc.coordinate)
		}
		let pl = MKPolyline(coordinates: &cs, count: cs.count)

	@IBOutlet var timeLabel:UILabel!
	@IBOutlet var distLabel:UILabel!
	
	var hs:HKHealthStore! = HKHealthStore()
	
	var lm:CLLocationManager! = CLLocationManager()
	var started = false
