Class: Tepoch::Clock
- Inherits:
-
Object
- Object
- Tepoch::Clock
- Defined in:
- lib/tepoch/clock.rb
Instance Method Summary collapse
Instance Method Details
#tick(to_utc = true) ⇒ Object
4 5 6 7 8 |
# File 'lib/tepoch/clock.rb', line 4 def tick(to_utc = true) = Time.now.to_i print "#{} | #{Tepoch.to_time(, to_utc)} | #{Util.seconds_to_string()} \r" end |