Re: time() TIMER in seconds or just numbers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <richard@xxxxxxx> wrote:

> 2009/3/30 Andrew Williams <andrew4williams@xxxxxxxxx>:
> > 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
>
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux