0.0
No commit activity in last 3 years
No release in over 3 years
Array#each with status output
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 1.2.9
 Project Readme

counted_each¶ ↑

A extension for core Array class adding a #counted_each method that outputs count and time to finish iteration to STDERR (or a different IO Stream).

Usage:¶ ↑

require 'counted_each'

# optional, default is STDERR
CountedEach::Config.output = STDOUT

(0..5000).to_a.counted_each do
  sleep(0.001)
end