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
Pausing during a loop
Moderator: wwlytton
-
- Site Admin
- Posts: 6384
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: Pausing during a loop
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
}