some_time = Time.now
some_time.to_milliseconds # Time in milliseconds. It will be a big number
some_time.strftime("%H:%M:%S.#{some_time.to_milliseconds % 1000}") # Same as some_time.strftime('%H:%M:%S.%3N')

Email codedump link for Display time down to milliseconds in Ruby 1.8.7