nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sdl2: update window_handle to support Windows and intro display_handle
[nit.git]
/
lib
/
performance_analysis.nit
diff --git
a/lib/performance_analysis.nit
b/lib/performance_analysis.nit
index
4763061
..
b9e436a
100644
(file)
--- a/
lib/performance_analysis.nit
+++ b/
lib/performance_analysis.nit
@@
-122,11
+122,8
@@
class PerfEntry
# Total execution time of this event
var sum = 0.0
# Total execution time of this event
var sum = 0.0
- # Register a new event execution time with a `Timespec`
- fun add(lapse: Timespec) do add_float lapse.to_f
-
- # Register a new event execution time in seconds using a `Float`
- fun add_float(time: Float)
+ # 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
do
if time.to_f < min.to_f or count == 0 then min = time
if time.to_f > max.to_f then max = time