Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 16 MAR 2000 10:46:09AM A. B. Jones wrote:

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!


At 16 MAR 2000 11:08AM Stephen S. Revelation wrote:

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"

At 16 MAR 2000 12:42PM A. B. Jones wrote:

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.


At 16 MAR 2000 03:38PM Steve Smith wrote:

Also consider code of this nature running over the midnight boundary, especially in 24/7 systems.

Steve

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/da38da47c7900bde852568a400512149.txt
  • Last modified: 2024/01/04 21:00
  • by 127.0.0.1