class Progress::IOBar

Defined in:

progress_bar/io_bar.cr

Constant Summary

ONE_SECOND = Time::Span.new(seconds: 1)

Constructors

Instance Method Summary

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

def self.new(total = 100, step = 1, theme = Theme.new, output_stream = STDOUT, lock = Mutex.new) #

[View source]

Instance Method Detail

def caclulate_throughput(bytesize) #

Returns the throughput, in bytes per second. Also resets the last tick to the current time


[View source]
def progress_writer #

[View source]