Obtained by Mandrakacards blog here. Using the Rails's Benchmark module.
Benchmark
Define method:
def time(&block) puts Benchmark.measure(&block) end
Then simply
time{Article.where('title like ?','Hello')}