title: Producing delay between statements in Ruby
body: <p>Again, I'm asking this question: How to produce delay in Ruby?</p>
  
  <pre><code>puts "amit"
  sleep(10)
  puts "asda"
  </code></pre>
  
  <p>I want a delay between two statements. When I tried the above example, first I have a delay of 10 seconds, and then both statements execute. I don't want that.</p>