title: HTML5: How to get currentTime and duration of Audio Tag in milliseconds
body: <p>I am using HTML5 audio tag for playing sound files in my template. For some purpose I need to track the currentTime and duration which shows upto milliseconds. Now I am able to get the values in seconds only. Is there any possible methods? Below is my code:</p>
  
  <pre><code>HTML
  &lt;audio controls id="track" src="&lt;path-to-soundtrack&gt;"
     ontimeupdate="TrackAudio(this)"&gt;
  &lt;p&gt;Your browser does not support the audio element&lt;/p&gt;
  &lt;/audio&gt;
  
  
  JAVASCRIPT
  function TrackAudio(element){
  var curTime = Math.floor(element.currentTime);
  console.log(curTime)   //Value in seconds.
  }
  </code></pre>