Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Discussions (General)
 Timer code. . .
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

GauravBhabu
Advanced Member

4288 Posts

Posted - 14 August 2002 :  21:16:59  Show Profile
I think that would not be big on Resources.
On off question, aren't all the variables in config.asp are loaded, even when all those are not used in pop_up windows or are They

About the Timer:

Dim StopWatch(19) 


19 can be set to 0 or 1 unless Timer is run and stopped inmore than one context.
Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 17 August 2002 :  00:35:00  Show Profile  Visit Nathan's Homepage
Why the timer script. Wouldn't it make more since just to record the current time at the beginning then subtracting that from the current time at the bottom?

Nathan Bales
CoreBoard | Active Users Download
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 17 August 2002 :  00:49:13  Show Profile
It can be done. I believe that the reason it used functions was to determine the process time for several operations within the page. That is why the array StopWatch was dimensioned to 19 (Dim StopWatch(19).
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 17 August 2002 :  01:12:32  Show Profile
I'm pretty sure it's just something that Gor found somewhere. It was included in v3.3 by mistake, was just supposed to be something for this site.
Go to Top of Page

alex042
Average Member

USA
631 Posts

Posted - 17 August 2002 :  01:19:34  Show Profile  Send alex042 an AOL message  Send alex042 a Yahoo! Message
quote:
I'm pretty sure it's just something that Gor found somewhere. It was included in v3.3 by mistake, was just supposed to be something for this site.


Nice feature for us webmasters though.
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 17 August 2002 :  01:20:26  Show Profile
I use it to determine how much time is taken to build several portions of the page, especially when several queries are executing on a single page and how much time it takes to display the information retrieved for each recordset.
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 17 August 2002 :  05:39:33  Show Profile  Visit Gremlin's Homepage
No need for the Timer to be an array anyway, just make it a single variable, that way less memory will be allocated and therefore less used on those pages such as footer_short which don't use it.

It has been a great feature though for helping people with the "My forums slow" topics.

Kiwihosting.Net - The Forum Hosting Specialists
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 17 August 2002 :  10:00:34  Show Profile
Why not just include the stop timer code in inc_footer_short.asp too? It's only a small portion of code... If the start timer code gets put in config.asp and you worry about the pop-ups, then that would be a solution.

On all pop-ups I've seen, there was enough space for an extra line of text at the bottom. It doesn't even have to be shown, 'cause as you said, nobody cares about the creation time of the pop-up windows.
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.13 seconds. Powered By: Snitz Forums 2000 Version 3.4.07