title: Call method after 5 millisecond
body: <p>How to call record method after 5 millisecond playing audio with MediaPlayer. I tried something like that but i don't know and i didn't find any good examples to end this.</p>
  
  <pre><code>while(mp.isPlaying()){
      if(record=0){
         for(int i=0; i&lt;5millisec; i++){ //how to define 5 millisec or is any better solution
         }
      startRecord();
      record=1;
      }
  }
  mp.stop();
  mp.release();
  mp=null;   
  </code></pre>