Skip to content

Commit 4179920

Browse files
committed
FIX: make delta-time a little bit more precise
1 parent 03ca14b commit 4179920

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mezz/mezz-debug.reb

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ dt: delta-time: function [
1616
{Delta-time - returns the time it takes to evaluate the block.}
1717
block [block!]
1818
][
19-
recycle ; force GC, so there is less chance that it is fired in `do block`
19+
; force GC, so there is less chance that it is fired in `do block`
20+
recycle recycle ; 2x => first mark, second sweep
2021
start: stats/timer
2122
do block
2223
stats/timer - start

0 commit comments

Comments
 (0)