factor/extra/crypto/timing/timing.factor

7 lines
195 B
Factor
Raw Normal View History

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