Pausing during a loop

Moderator: wwlytton

Post Reply
Posts: 5
Joined: Mon Jun 30, 2014 9:28 am

Pausing during a loop

Post by stu2010 » Wed Jul 23, 2014 11:20 am

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.

Site Admin
Posts: 5153
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine

Re: Pausing during a loop

Post by ted » Wed Jul 23, 2014 2:43 pm

Try calling this func with the desired argument

Code: Select all

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

Post Reply