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:22, 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. > > 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 at http://groups.google.com/group/google-maps-api?hl=en.
