Alternative:

>> require 'time'
=> true
>> t1 = Time.parse("12:35:10.000757")
=> Mon Sep 20 12:35:10 +0100 2010
>> t2 = Time.parse("12:35:10.000759")
=> Mon Sep 20 12:35:10 +0100 2010
>> t2 - t1
=> 2.0e-06
-- 
Posted via http://www.ruby-forum.com/.