Timing Functions and Merge Sort (was: forever loops and cpu usage)
[1/2] from: lmecir::mbox::vol::cz at: 9-Feb-2004 9:57
Paul Tretter napsal(a):
>That's very interesting. With your functions are you able to determine the >optimum performance wait time? >
Yes. I am using my timing functions to determine optimum performance in many situations.
> And if so, is it platform independent? >
The system clock tick is platform dependent. OTOH, the 0.001 limit for the WAIT function looks like platform independent. Below the limit the WAIT function doesn't wait at all, it returns "immediately" as my measurements seem to prove.
> This >information is really necessary to get published if people are making >platform independent scripts. >
You can find the functions here: http://www.compkarori.com/vanilla/display/include.r - My dependancy-resolving function http://www.compkarori.com/vanilla/display/seconds.r - Function computing time between two dates in seconds http://www.compkarori.com/vanilla/display/timblk.r - Timing functions Moreover, I uploaded my Merge Sort implementation (I am using it since Rebol 1.x days and this is not the first time I am publishing it): http://www.compkarori.com/vanilla/display/msort.r -L
[2/2] from: ptretter:charter at: 9-Feb-2004 9:01
Great scripts Ladislav - I will go thru these much more and add them to my inventory. I'm sure they will be useful. Thanks, Paul Tretter ----- Original Message ----- From: "Ladislav Mecir" <[lmecir--mbox--vol--cz]> To: <[rebol-list--rebol--com]> Sent: Monday, February 09, 2004 2:57 AM Subject: [REBOL] Timing Functions and Merge Sort (was: forever loops and cpu usage)