timed_open (File)

    # File ../lib/roller.rb, line 40
      def self.timed_open(filename, access = "r", &block)
        if access.match(/r/)
          print "Reading"
        else
          print "Writing"
        end

        print " '#{File.basename(filename)}'..."

        start = Time.now

        result = open(filename, access) do |file|
          block.call(file)
        end

        finish = Time.now

        puts "#{File.size(filename)} bytes in #{format_time(finish - start)}"

        result
      end