Handbook
Glossary
wordtimer-call ( quot -- )
Vocabulary
wordtimer
Inputs
quot
a
quotation
Outputs
None
Word description
Resets the wordtimer hash and runs the quotation. After the quotation has run it prints out the timed words
Definition
USING:
io
kernel
prettyprint
tools.time
;
IN:
wordtimer
:
wordtimer-call
( quot -- )
reset-word-timer
benchmark
[
correct-for-timing-overhead
"total time:"
write
]
dip
pprint
nl
print-word-timings
nl
;
inline