lib/loba/internal/time_keeper.rb in loba-2.0.0 vs lib/loba/internal/time_keeper.rb in loba-2.1.0
- old
+ new
@@ -13,12 +13,12 @@
def initialize
reset!
end
- # Increments timestamping, including attributes `timenum` and `timewas`
+ # Increments timestamping, including attributes +timenum+ and +timewas+
# @return [Hash] timestamp details
- # * :number => [Integer] incremented count of pings so far (attribute `timenum`)
+ # * :number => [Integer] incremented count of pings so far (attribute +timenum+)
# * :now => [Time] current date and time
# * :change => [Float] difference in seconds from any previous ping or reset
def ping
@timenum += 1
now = Time.now