That is, the delay of Sleep100c in vb means waiting for 100 milliseconds .. that is, the Sleep 100 in vb.
C's delay
It means waiting for 100 milliseconds ..
Reply content:
Is the Sleep 100 of vb.
C's delay
It means waiting for 100 milliseconds ..
# Jssettimeout ("test ()", "2000"); // run the test () function once in 2000 milliseconds. Setinterval ("test ()", "2000"); // The test () function is executed every 2000 milliseconds and countless times. # Phpsleep ()-delay execution usleep ()-delay execution with a specified number of microseconds
Js
setTimeout(function(){},1000)
Php
sleep(10);
jsNosleep/delayStrictly speaking, apart from the latency, the two functions willBlockingCurrent thread, and other latenciesAfter thatContinue executing the code
And LS answerssetTimeoutAndsetIntervalAllNot blockedThe current thread only sets a timer in the background.Continue execution immediatelyThe subsequent code will be executed after the timer time is reached
phpUsesleep/usleep, With the same effect as c
Php uses sleep (1); wait 1 second
I flipped through the record of the landlord's questions and advised the landlord to give up the industry early.