how to 'sleep' in asp?
I'm using an asp code to process data in database on server. It is a long time loop. What I want to do is: once after some processing, put the asp in 'sleep' for about 10 seconds (or some time), so that the server can process other things while processing my data.
I found this code:
/////////////////////
StartTime = Timer()
EndTime = Timer()
WaitTime = EndTime - StartTime
do while WaitTime < 10
EndTime = Timer()
WaitTime = EndTime - StartTime
loop
///////////////////
will this code satisfy what I need? or, it will still 'block' the server?
I mean asp, not asp.net.
any help is appreciated.
thanks
bear
I'm using an asp code to process data in database on server. It is a long time loop. What I want to do is: once after some processing, put the asp in 'sleep' for about 10 seconds (or some time), so that the server can process other things while processing my data.
I found this code:
/////////////////////
StartTime = Timer()
EndTime = Timer()
WaitTime = EndTime - StartTime
do while WaitTime < 10
EndTime = Timer()
WaitTime = EndTime - StartTime
loop
///////////////////
will this code satisfy what I need? or, it will still 'block' the server?
I mean asp, not asp.net.
any help is appreciated.
thanks
bear
Comment