I have just tried to check time before and after function using PHP: <?php $trasa=microtime(); ?> <?php echo 'time: '.round(microtime()-$trasa, 10).'s.'; ?>
But it doesn't work properly. I would like to check for example how long it takes to find route in function getDir. The mentioned PHP code shows the same same time, as if I use this funkction I do not reload whole page, just getDir is executed twice. Please show me an example of how can I check the execution time. Thx. K.N On 20 Maj, 15:40, "[email protected]" <[email protected]> wrote: > On May 20, 6:22 am, Kataryzna Nowicka <[email protected]> wrote: > > > How can I measure how long it takes to some function to execute, for > > instance: I want to check how long it takes function getDir() to find > > the route between two places. > > record the time when you make the call. > record the time when the response comes back. > > take the difference and do with it as you will (output it to GLog or > display it on the page are 2 options I have used) > > -- Larry > > > > > Thank you for helping me. > > > K.N > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Maps API" 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 > > athttp://groups.google.com/group/google-maps-api?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps API" 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 > athttp://groups.google.com/group/google-maps-api?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Maps API" 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.
