struct

Fluorite::Runner::Progress

Inherits Struct < Value < Object

Constructors

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)
Source

Class methods

format_span(span : Time::Span) : String

Formats time span as HH:MM:SS

Source

Instance methods

bar(width : Int32 = 25) : String

Generates a smooth Unicode progress bar

Source
bitrate_kbps
Source
bitrate_kbps=(bitrate_kbps : Float64)
Source
current_time
Source
current_time=(current_time : Time::Span)
Source
eta=(eta : Time::Span | Nil)
Source
eta_formatted
Source
fps=(fps : Float64)
Source
frame
Source
frame=(frame : Int64)
Source
human_size
Source
percent
Source
percent=(percent : Float64)
Source
size_bytes
Source
size_bytes=(size_bytes : Int64)
Source
speed
Source
speed=(speed : Float64)
Source
speed_formatted
Source
time_formatted
Source
total_duration
Source
total_duration=(total_duration : Time::Span | Nil)
Source
total_formatted
Source