それやるならこうじゃね while 1 if time$!=otm$ then cnt=cnt+1:?cnt:otm$=time$ wend