Page 1 of 1

Pausing during a loop

Posted: Wed Jul 23, 2014 11:20 am
by stu2010
Hello
I am running a loop of different graphs
This may be silly, but is it possible to pause the loop for a few seconds before it continues onto the next iteration.
Thanks

Re: Pausing during a loop

Posted: Wed Jul 23, 2014 2:43 pm
by ted
Try calling this func with the desired argument

Code: Select all

// argument is in seconds
func pause() { local tmp
  tmp=startsw()
  while (startsw()-tmp<$1) { }
  return startsw()-tmp
}