I doesn't work in this way, that's why i am writing. it takes about 4-5 min to display 5000 markers from DB, but function resturns time about 1-3 ms. I have another script that generates 5000 random lat and lng and it works much longer for ex. 72 sec!
Any idea? KN On 21 Lis, 18:38, Andrew Leach <[email protected]> wrote: > On 21 November 2010 17:10, Kataryzna Nowicka <[email protected]> wrote: > > > I have a script that use javaScript to send parameters to PHP, than > > PHP imports data from database on the server and returns them to > > JavaScript. These data are latitude and longitude of point. > > After all I use those data to generate marker and I addOverlay. > > I need to measure how long it takes to send data, receive them and > > mark those poins on the map. > > Your functions are probably adequate if they are executed in the right > order. Get the start time just before you send the parameters to PHP, > and get the end time on the final addOverlay event. If each addOverlay > event updates the end time, then the final result will be the time the > last marker was added. -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
