When someone does that, it means the execution time between $t1 and $t2...

Att,
Igor Escobar
systems analyst & interface designer
www . igorescobar . com



On Mon, Mar 30, 2009 at 7:38 AM, Richard Heyes <rich...@php.net> wrote:

> 2009/3/30 Andrew Williams <andrew4willi...@gmail.com>:
> > what does time();
> >
> > $t1 = time();
> >
> > {
> >
> > do something
> > }
> > $t2 = time();
> >
> > $end_time = $t2 - $t1;
> > echo $end_time;
> >
> > what does $end_time represent?
>
> $end_time is not a great name for it: it's the time (number of
> seconds) it took to go from $t1 to $t2. $duration might be better.
>
> > how do you determine the next 5 mins?
>
> Eh? time() + 300 is five minutes from now.
>
> --
> Richard Heyes
>
> HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari:
> http://www.rgraph.net (Updated March 14th)
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Reply via email to