class HTTP::Timeout::Global

def log_time

def log_time
  @time_left -= (Time.now - @started)
  if @time_left <= 0
    raise TimeoutError, "Timed out after using the allocated #{@timeout} seconds"
  end
  reset_timer
end