Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

timeout....

Status
Not open for further replies.

mackey333

Technical User
May 10, 2001
563
US
I have a function that needs to run over 100 times, if it goes at normal speed it is way too fast put with a timeout at 1 mil. sec it is to slow a tried using .01 ect...it didn't seem to help..any suggestions?

-Greg
 
for (i=1; i<=100; 1++)
setTimeout(functionToRun(), 100)

waits 1/10 of a second before each execution -- adjust as needed
 
I have that already, setTimeout('function', 1) is too slow...and it won't work in the loop like that...is there anything faster than this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top