title: How to get the elapsed time in milliseconds in a bash script?
body: <p>I tried using <code>t1=$(date +%s%N)</code> to get the time in nanoseconds, but I kept in getting this error: </p>
  
  <pre><code>./script.sh: line 10: 1292460931N: value too great for base (error token is "1292460931N")
  </code></pre>
  
  <p>I looked up online and it seems that you can use the "time" command, however I can't find a good example of using the time command. Any help would be appreciated :)</p>