#!/usr/koeki/bin/ruby # -*- coding: utf-8 -*- puts "VERSION:" + RUBY_VERSION puts "PLATFORM:" + RUBY_PLATFORM start_time = Time.now.to_f x = 0 while x < 10000000 x += 1 end puts "x=" + x.to_s printf("処理時間 %f秒\n", Time.now.to_f - start_time)