Re: [PHP] time() TIMER in seconds or just numbers

2009-03-30 Thread haliphax
On Mon, Mar 30, 2009 at 3:35 PM, Shawn McKenzie wrote: > Andrew Williams wrote: >> what does time(); >> >> $t1 = time(); >> >> { >> >> do something >> } >> $t2 = time(); >> >> $end_time = $t2 - $t1; >> echo $end_time; >> >> what does $end_time represent? >> >> how do you determine the next 5 mins?

Re: [PHP] time() TIMER in seconds or just numbers

2009-03-30 Thread Shawn McKenzie
Andrew Williams wrote: > what does time(); > > $t1 = time(); > > { > > do something > } > $t2 = time(); > > $end_time = $t2 - $t1; > echo $end_time; > > what does $end_time represent? > > how do you determine the next 5 mins? So if you haven't deduced the answer from other replies, this woul

Re: [PHP] time() TIMER in seconds or just numbers

2009-03-30 Thread haliphax
On Mon, Mar 30, 2009 at 1:51 PM, Igor Escobar wrote: > Okey, but you understand the purpouse of it? > > On Mon, Mar 30, 2009 at 3:42 PM, haliphax wrote: >> >> On Mon, Mar 30, 2009 at 11:37 AM, Igor Escobar >> wrote: >> > The people use that to measure performance. >> > >> > If you're intersted a

Re: [PHP] time() TIMER in seconds or just numbers

2009-03-30 Thread Igor Escobar
Okey, but you understand the purpouse of it? Igor Escobar systems analyst & interface designer www . igorescobar . com On Mon, Mar 30, 2009 at 3:42 PM, haliphax wrote: > On Mon, Mar 30, 2009 at 11:37 AM, Igor Escobar > wrote: > > The people use that to measure performance. > > > > If you're

Re: [PHP] time() TIMER in seconds or just numbers

2009-03-30 Thread haliphax
On Mon, Mar 30, 2009 at 11:37 AM, Igor Escobar wrote: > The people use that to measure performance. > > If you're intersted about that read > http://www.igorescobar.com/blog/2009/03/05/benchmarking-de-desempenho-no-php/ > (in portuguese, sorry) > > Regards, > Igor Escobar > > On Mon, Mar 30, 2009

Re: [PHP] time() TIMER in seconds or just numbers

2009-03-30 Thread Bastien Koert
On Mon, Mar 30, 2009 at 12:05 PM, haliphax wrote: > On Mon, Mar 30, 2009 at 10:47 AM, Richard Heyes wrote: > >> When someone does that, it means the execution time between $t1 and > $t2... > > > > Is that for my benefit? Believe it or not, I do know the arcane art of > > subtraction... > > I wou

Re: [PHP] time() TIMER in seconds or just numbers

2009-03-30 Thread haliphax
On Mon, Mar 30, 2009 at 10:47 AM, Richard Heyes wrote: >> When someone does that, it means the execution time between $t1 and $t2... > > Is that for my benefit? Believe it or not, I do know the arcane art of > subtraction... I would subtract more often, but sacrificial farm animals and black cand

Re: [PHP] time() TIMER in seconds or just numbers

2009-03-30 Thread Richard Heyes
> When someone does that, it means the execution time between $t1 and $t2... Is that for my benefit? Believe it or not, I do know the arcane art of subtraction... -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.net (Updated March 14th) -- PHP Ge

Re: [PHP] time() TIMER in seconds or just numbers

2009-03-30 Thread Igor Escobar
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 wrote: > 2009/3/30 Andrew Williams : > > what does time(); > > > > $t1 = time(); > > > > { >

Re: [PHP] time() TIMER in seconds or just numbers

2009-03-30 Thread Richard Heyes
2009/3/30 Andrew Williams : > 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. $durat

Re: [PHP] time() TIMER in seconds or just numbers

2009-03-30 Thread Stuart
2009/3/30 Andrew Williams : > what does time(); > > $t1 = time(); > > { > > do something > } > $t2 = time(); > > $end_time = $t2 - $t1; > echo $end_time; > > what does $end_time represent? The number of seconds it took to "do something". > how do you determine the next 5 mins? Assuming you mean