class Object

Public Instance Methods

handleIO(stillOpen, ioArray, io, log) click to toggle source
# File lib/trace-component.rb, line 12
def handleIO(stillOpen, ioArray, io, log)
  if ioArray.include?(io)
    begin
      log.write(io.readpartial(4096))
    rescue EOFError
      stillOpen.delete_if{|s| s == io}
    end
  end
end
time_diff_milli(start, finish) click to toggle source
# File lib/trace-component.rb, line 8
def time_diff_milli(start, finish)
   (finish - start) * 1000.0
end