Sha256: 7ed591c50cb0fa62665b8151630175f06424ff51fffefd4428f6d84d26476d55

Contents?: true

Size: 150 Bytes

Versions: 13

Compression:

Stored size: 150 Bytes

Contents

module Loga
  module Utilities
    def duration_in_ms(started_at, ended_at = Time.now)
      ((ended_at - started_at) * 1000).round
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
loga-2.8.1 lib/loga/utilities.rb
loga-2.8.0 lib/loga/utilities.rb
loga-2.7.0 lib/loga/utilities.rb
loga-2.6.1 lib/loga/utilities.rb
loga-2.6.0 lib/loga/utilities.rb
loga-2.5.4 lib/loga/utilities.rb
loga-2.5.3 lib/loga/utilities.rb
loga-2.5.2 lib/loga/utilities.rb
loga-2.5.1 lib/loga/utilities.rb
loga-2.5.0 lib/loga/utilities.rb
loga-2.4.0 lib/loga/utilities.rb
loga-2.3.1 lib/loga/utilities.rb
loga-2.3.0 lib/loga/utilities.rb