#!/usr/bin/env ruby # -*- coding: utf-8 -*- puts"ストップウォッチを起動します" puts"Enterを押してスタート,ストップです" start_scale=gets.to_f start_time=Time.now end_scale=gets.to_f taimu=Time.now-start_time printf("タイムは%d秒です\n",taimu)