module Loga::Utilities

Public Instance Methods

duration_in_ms(started_at, ended_at = Time.now) click to toggle source
# File lib/loga/utilities.rb, line 3
def duration_in_ms(started_at, ended_at = Time.now)
  ((ended_at - started_at) * 1000).round
end