Created
June 23, 2019 22:54
-
-
Save eggplants/77904c227a531ecb322e1e7fe7b43983 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
require 'time' | |
o = Time.now | |
begin | |
loop do | |
dt = Time.at((n=Time.now)-o.to_i) | |
print (n-o).to_i%1800==0? 7.chr | |
: Time.at(Time.at(61200)-dt).strftime("LEFT TIME::{%Hh:%Mm:%Ss}") | |
print "\r" | |
sleep(1) | |
end | |
rescue Interrupt | |
puts 7.chr | |
puts "!!!stop!!!" | |
3.times{print(".");sleep(1)} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment