added crypto/timing.factor
parent
b19a6672bf
commit
1b44cf1c25
|
@ -2,6 +2,7 @@ REQUIRES: math ;
|
||||||
|
|
||||||
PROVIDE: crypto {
|
PROVIDE: crypto {
|
||||||
"common.factor"
|
"common.factor"
|
||||||
|
"timing.factor"
|
||||||
"base64.factor"
|
"base64.factor"
|
||||||
"barrett.factor"
|
"barrett.factor"
|
||||||
"montgomery.factor"
|
"montgomery.factor"
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
IN: timing
|
||||||
|
USING: kernel threads ;
|
||||||
|
|
||||||
|
: with-timed ( quot n -- )
|
||||||
|
#! force the quotation to execute in, at minimum, n milliseconds
|
||||||
|
millis rot call millis swap - - sleep ;
|
Loading…
Reference in New Issue