I'm not sure if you got my message so I write again.

I need to check how long it takes to calculate route by function
getDir.
SO far I tried PHP code:
<?php $trasa=microtime(); ?>
 <?php echo 'time: '.round(microtime()-$trasa, 10).'s.';  ?>
BUt it doesn't work correctly as I do not reload the whole page when I
use function, I just execute this function twice.
So the time shown by PHP doesn't answer my qestion.

On the other hand I have tried to use this php in the function, but an
error occured.

Please show me on the example how can I measure this 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.

Reply via email to