class Progress::IOBar
- Progress::IOBar
- Progress::Bar
- Reference
- Object
Defined in:
progress_bar/io_bar.crConstant Summary
-
ONE_SECOND =
Time::Span.new(seconds: 1)
Constructors
Instance Method Summary
-
#caclulate_throughput(bytesize)
Returns the throughput, in bytes per second.
- #progress_writer
Instance methods inherited from class Progress::Bar
current : Float64 | Int32
current,
done?
done?,
finish!
finish!,
humanized_current
humanized_current,
humanized_total
humanized_total,
output_stream : IO::FileDescriptor
output_stream,
remaining
remaining,
theme : Progress::Theme
theme,
tick(n = @step, no_print = false)
tick,
total : Int32
total
Constructor methods inherited from class Progress::Bar
new(total : Int32 = 100, step : Int32 = 1, theme : Progress::Theme = Theme.new, output_stream : IO::FileDescriptor = STDOUT)
new
Constructor Detail
Instance Method Detail
def caclulate_throughput(bytesize)
#
Returns the throughput, in bytes per second. Also resets the last tick to the current time