G
Gregory A Greenman
I have a program that accesses a web service. One of the terms of
use of this web service is that I am not supposed to call it more
than about once per second. My program currently runs much too
fast, so I need to add some sort of timer to bring it into
compliance with their terms. Here's what my program looks like
now:
Sub ProcessData
While MoreData
PrepareWebServiceRequest
SubmitRequest
ProcessWebServiceResponse
End While
End Sub
I need to change this so that SubmitRequest waits until a second
has elapsed since it last ran. Can someone tell me how I should
do this?
Thanks.
use of this web service is that I am not supposed to call it more
than about once per second. My program currently runs much too
fast, so I need to add some sort of timer to bring it into
compliance with their terms. Here's what my program looks like
now:
Sub ProcessData
While MoreData
PrepareWebServiceRequest
SubmitRequest
ProcessWebServiceResponse
End While
End Sub
I need to change this so that SubmitRequest waits until a second
has elapsed since it last ran. Can someone tell me how I should
do this?
Thanks.