performance_analysis :: PerfEntry :: add
# Register a new event execution time in seconds fun add(time: Float) do if time.to_f < min.to_f or count == 0 then min = time if time.to_f > max.to_f then max = time sum += time count += 1 avg = sum / count.to_f end