Module: Concord::Utils
Overview
Some helper functions useful in client computations
Instance Method Summary collapse
-
#time_millis(t = Time.now) ⇒ Object
Get the time in milliseconds.
Instance Method Details
#time_millis(t = Time.now) ⇒ Object
Get the time in milliseconds
8 9 10 |
# File 'lib/concord/utils.rb', line 8 def time_millis(t = Time.now) (t.to_f * 1000.0).to_i end |