I want to measure the time required by my custom RBasic code to service an Inet_Gateway initiated request. I use something like:
START_TIME=TIME() at the beginning and FINISH_TIME=TIME() at the end.
The FINISH_TIME is the same as START_TIME even though many seconds may pass between. Any ideas are appreciated!
A. B.,
If you meant Basic+ script, I have a Inet function I used for testing a while back. Here it is:
function inet_delay(Request) declare function inet_QueryParam delay=inet_QueryParam(Request, "DELAY") time0=time() loop time=time() while time < time0 + delay repeat return "Elapsed: " : delay: " sec"
Thanks Stephen, sometimes I need a touch of reality. I pasted your code in the front and then the back of mine. Your code works at both places, mine in the middle did not. I tracked the problem down to poor programming where I am using a common block containing START_TIME and reset same.
Also consider code of this nature running over the midnight boundary, especially in 24/7 systems.
Steve