title: Bash Read -t but in milliseconds?
body: <p>Hi in my code I have while loop and at the beginning of that while loop, I use the read function to make kill function.
  So every time the program goes through the loop it will first check if you pressed the kill button.</p>
  
  <p>Problem is, is that the read command timeout cannot be shorter than 1 second. This makes the program annoyingly slow.</p>
  
  <p>Is there a way to time out the read command in milliseconds?
  or should I work with something else to kill the program?</p>
  
  <pre><code>while(true)
  
  do
   read -n1 -t 0.01 killer
   if [ "$killer" == "k" ]
   then
     echo "ill!!!"
     pkill -9 -e -f gnome-terminal- # a ros node that's running in the background
     pkill -9 -e -f Test_PI.sh # the name of the bash
   fi
  
   echo "working"
   clear
  done
  </code></pre>