Newer
Older
Ruby / timewatch.rb
@HAYASAKA Shunto HAYASAKA Shunto on 2 Nov 199 bytes 2025-11-02 14:52:32
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
print("時間を測ります\n")
time = Time.now.to_f
stop = gets.chomp
just = Time.now.to_f
jikan = just - time
printf("タイムは%f秒です\n",jikan)