title: how to invoke a method for every second in ruby
body: <p>I wanted to create a stopwatch program in ruby so I googled it and found this <a href="https://stackoverflow.com/questions/858970/how-to-get-a-stopwatch-program-running"><strong>SO Q</strong></a>.</p>
  
  <p>But over there, the author calls the <code>tick</code> function with <code>1000xxx.times</code>. I wanted to know how I can do it using something like <code>(every second).times</code> or for each increment of second do call the <code>tick</code> function.</p>