title: Synchronizing "SensorEvent.timestamp" with "System.nanoTime()" or "SystemClock.elapsedRealtimeNanos()"
body: <p><strong>The problem:</strong> </p>
  
  <p>I need to synchronize some data set time-stamped using <code>System.nanoTime()</code> with another one time-stamped using <code>SensorEvent.timestamp</code>.</p>
  
  <p><strong>Description:</strong></p>
  
  <p>I am working on System Identification of a quadcopter. Data acquisition is done using Android API. The input to my system is the pulse width modulation (PWM) which are time-stamped using <code>System.nanoTime()</code> with a frequency of 200 Hz.</p>
  
  <p>The output of the system is Androids's sensors measurements which are time-stamped using <code>SensorEvent.timestamp</code>.</p>
  
  <p>I've checked many online resources but unfortunately didn't help. Can I access <code>SensorEvent.timestamp</code> whenever I want so I time-stamp the inputs using this clock?</p>