measuring how far you ran and time it took.

You would be much better attaching it to something that moves in a steady manor rather than the legs. I would put it round the waist. In theory you need to integrate the acceleration readings to get a distance reading but in practice drift in the sensor limits the accuracy.