{{tag>category:"OpenInsight Specific"}} [[https://www.revelation.com/|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]] ==== Inet_Gateway and Time() (OpenInsight Specific) ==== === 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 [[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=NONWORKS_READ&SUMMARY=1&KEY=DA38DA47C7900BDE852568A400512149|View this thread on the forum...]]