repeat loop は goto で突入と脱出ができませんし、
ラベルだと、色分けされないので目立たないという
(変な)理由で while を使います。
以上、ラベル嫌いな自分の意見。
> check さん
repeat が最速のようです。
#uselib "winmm.dll"
#cfunc timeGetTime "timeGetTime"
#define times 300000
#define _WAIT await 0
// ラベル
lb = timeGetTime()
*start : _WAIT : i ++ : if ( i < times ) { goto *start }
lb = timeGetTime() - lb
i = 0
// 繰り返し
re = timeGetTime()
repeat times : _WAIT : loop
re = timeGetTime() - re
// while
wh = timeGetTime()
while i < times : _WAIT : i ++ : wend
wh = timeGetTime() - wh
i = 0
// while()
whp = timeGetTime()
while (i < times) : _WAIT : i ++ : wend
whp = timeGetTime() - whp
i = 0
mes "*LABEL : "+ lb
mes "repeat : "+ re
mes "while : "+ wh
mes "while(): "+ whp
stop
・ウェイトをかけるときに限り、while() の方若干速いという謎のデータが出た。
・#define で作ったユニークラベル *%i は高速。
・ローカルラベルは普通。
大切なのは、速度よりも見やすさ・使いやすさだと思いますが。