Handbook
Glossary
add-timer ( word -- )
Vocabulary
wordtimer
Inputs
word
a
word
Outputs
None
Word description
annotates the word with timing code which stores timing information globally. You can then view the info with print-word-timings
Definition
USING:
kernel
tools.annotations
;
IN:
wordtimer
:
add-timer
( word -- )
dup
[
]
curry
[
dip
(add-timer)
]
curry
annotate
;