title: Accelerometer Data over Specific time (javascript)
body: <p>Is there anyway I can retreive accelerometer data over a specific time frame using the <code>window.ondevicemotion</code></p>
  
  <p>That is. I want the user to click a button then shake the phone for a fixed period of time (say five seconds) and retrieve the average speed at which he/she is shaking on all three axis.</p>
  
  <p>Is there a way i can do this?</p>
  
  <p>Thank you kindly.</p>