title: how to produce delay in ruby
body: <p>How to produce delay in ruby?</p>
  
  <p>I used sleep statement but it didn't give me what I want.</p>
  
  <pre><code>puts "amit"
  sleep(10)
  puts "scj"
  </code></pre>
  
  <p>I want it to first print amit, then a delay of 10 seconds, then print scj.</p>
  
  <p>But in above case what happens is it will pause for 10 seconds and then it will print amit and scj together. I don't want that.</p>
  
  <p>I hope you got what I want to say.</p>