Sha256: ae3c73c2a42a8f88f2d63771530aeeffe08b0e73492b80e8ab71efe328eeb501

Contents?: true

Size: 182 Bytes

Versions: 3

Compression:

Stored size: 182 Bytes

Contents

module Spanx
  module Helper
    module Timing
      def period_marker(resolution, timestamp = Time.now)
        timestamp.to_i / resolution * resolution
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spanx-0.3.0 lib/spanx/helper/timing.rb
spanx-0.1.1 lib/spanx/helper/timing.rb
spanx-0.1.0 lib/spanx/helper/timing.rb