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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Timer starting and stopping

Status
Not open for further replies.

JD9955

Programmer
Apr 16, 2007
15
US
Hi All,

I have a request that hopefully someone will be able to help out with.. Involving Timers.

I need to perform the following:

Start 10 second timer loop
# Perform logic (i.e. send request to webserver and wait for response)
If response comes back within the 10 second timer (i.e. within 10 seconds) then
# All ok
Stop timer (and start timer loop again)
Else
# ERROR (and start timer loop again)
End If
Timer end loop.

So I suppose I need logic to:

a)start a 10 second timer.

b)If response has come back, check If 10 second timer has finished. If so, end timer and start timer loop again.

c)If timer is up and no response has been received (i.e. no flag has been set), then error and restart timer 10 second counter again.


cheers all :)

JD.
 
Thanks Miller,

much appreciated :)

Regards,

JD
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top