Created
December 6, 2011 09:41
-
-
Save udzura/1437568 to your computer and use it in GitHub Desktop.
時計のように秒が進んでいきます
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trap(:INT) { puts "\nabort"; exit } | |
puts "-" * 32 | |
loop do | |
print Time.now | |
sleep 1 | |
print "\r", " " * 32, "\r" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment