tags:

views:

45

answers:

0

Possible Duplicate:
how to produce delay in ruby

how to produce delay in ruby i used sleep staement but it did nt give what i want Actully

puts "amit" 
sleep(10)
 puts "scj" 

i want first it print amit than a delay 10 sec than print scj but in above case what happens is it execution paused for 10 sec then it print amit scj without any delay... i want delay between these two statement... i hope u undersatnd what i want plzz help me