Harrath hichem
Harrath hichem

Reputation: 163

Calculate motion time CMMotionActivity?

I'm trying to calculate the time of motion (either walking or running). Every CMMotionActivity object has a startDate property that indicates the time at which the activity started. But there is no indication the end time.

Is there any solution?

Upvotes: 0

Views: 218

Answers (1)

matt
matt

Reputation: 535232

Every CMMotionActivity object is succeeded by another CMMotionActivity object. Each has a startDate property that indicates the time at which the activity started. Thus, the end time of each CMMotionActivity object is given by the startDate of its successor.

Upvotes: 3

Related Questions