Register a new event execution time in seconds

Property definitions

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
lib/performance_analysis/performance_analysis.nit:130,2--139,4