struct Fluorite::Runner::Progress

Defined in:

fluorite/runner/progress.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(frame : Int64 = 0_i64, fps : Float64 = 0.0, q : Float64 = 0.0, size_bytes : Int64 = 0_i64, current_time : Time::Span = Time::Span.zero, total_duration : Time::Span | Nil = nil, percent : Float64 = 0.0, bitrate_kbps : Float64 = 0.0, speed : Float64 = 0.0, eta : Time::Span | Nil = nil) #

Class Method Detail

def self.format_span(span : Time::Span) : String #

Formats time span as HH:MM:SS


Instance Method Detail

def bar(width : Int32 = 25) : String #

Generates a smooth Unicode progress bar


def bitrate_kbps : Float64 #

def bitrate_kbps=(bitrate_kbps : Float64) #

def current_time : Time::Span #

def current_time=(current_time : Time::Span) #

def eta : Time::Span | Nil #

def eta=(eta : Time::Span | Nil) #

def eta_formatted : String #

def fps : Float64 #

def fps=(fps : Float64) #

def frame : Int64 #

def frame=(frame : Int64) #

def human_size : String #

def percent : Float64 #

def percent=(percent : Float64) #

def q : Float64 #

def q=(q : Float64) #

def size_bytes : Int64 #

def size_bytes=(size_bytes : Int64) #

def speed : Float64 #

def speed=(speed : Float64) #

def speed_formatted : String #

def time_formatted : String #

def total_duration : Time::Span | Nil #

def total_duration=(total_duration : Time::Span | Nil) #

def total_formatted : String #