title: PHP microtime() in javascript or angularjs
body: <p>In PHP microtime() return the string in "microsec sec". </p>
  
  <pre><code>php microtime()
  </code></pre>
  
  <p>eg: '0.48445100 1470284726' </p>
  
  <p>In JavaScript there is no default function for <code>microtime()</code>.<br>
  So divided the return type, where sec is in unix timestamp using <code>date.getTime()</code> returned the sec value, eg:</p>
  
  <pre><code>var date  = new Date();
  var timestamp = Math.round(date.getTime()/1000 | 0); 
  </code></pre>
  
  <p>Then how to get the 'microsec' value in JavaScript.</p>