It might be better to run the timer until you have successfully
created x number of layers, using their oncreate event.

-- 
// Robert Rainwater

On 12/11/2000, 11:44:23 PM EST, Michael wrote about "[Dynapi-Dev] Speed test":

> With all the talk of splitting the API and attempting to make it smaller
> / faster, I thought it would be useful to be able to see how long it
> actually take a page to download / render without the use of a stop
> watch.

> Here's what I did:

> I added the following line before "DynAPI = {"
>     var Start = new Date()

> I also added the following lines at the end of the loadhandler function:

>   var Stop = new Date();
>   var Diff = (Stop.getTime() - Start.getTime()) / 1000;
>   window.status='Page loaded in: ' + Diff + ' seconds';

> I hope this is of some use.
> --
> Michael Pemberton
> [EMAIL PROTECTED]
> ICQ: 12107010


_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/dynapi-dev

Reply via email to