factor/extra/crypto/timing/timing.factor

8 lines
193 B
Factor
Raw Normal View History

2007-09-20 18:09:08 -04:00
USING: kernel math threads system ;
IN: crypto.timing
: with-timing ( ... quot n -- )
#! force the quotation to execute in, at minimum, n milliseconds
millis 2slip millis - + sleep ;