Re: Page-Execution-Timer...PHP vs WebDNA

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 55535
interpreted = N
texte = >What is it about PHP that makes people want to use it??? $$$ On Fri, 16 Jan 2004 22:16:52 -0800 "Sal" wrote: >>From page: > >http://keithdevens.com/weblog/archive/2003/Dec/03/page-execution-timer > >function timer($finish = false){ > static $start_frac_sec, $start_sec, $end_frac_sec, $end_sec; > if($finish){ > list($end_frac_sec,$end_sec) = explode(" ", microtime()); > echo '

This page took about ' . > round( > ( > ($end_sec - $start_sec) > + ($end_frac_sec - $start_frac_sec) > ), > 4) . ' seconds to generate.

\n'; > }else{ > list($start_frac_sec,$start_sec) = explode(" ", microtime()); > } >} >?> > > >wtf was all that wasted code? in webdna: >at bottom of page: >this page took [format .4f][math][elapsedtime]/60[/math][/format] seconds to >generate. >What is it about PHP that makes people want to use it??? >by Amazing BrianB on 5-Dec-2003 8:42pm est > >Good question Brian, too bad no one responded. ;-) > >Sal D'Anna > > >------------------------------------------------------------- >This message is sent to you because you are subscribed to > the mailing list . >To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------ http://www.StrongGraphicDesign.com http://www.SearchBoise.com ------------------------------------------------------------ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Page-Execution-Timer...PHP vs WebDNA ( CN Stuff 2004)
  2. Re: Page-Execution-Timer...PHP vs WebDNA ( Kenneth Grome 2004)
  3. Re: Page-Execution-Timer...PHP vs WebDNA ( Gary Krockover 2004)
  4. Re: Page-Execution-Timer...PHP vs WebDNA ( Donovan Brooke 2004)
  5. Re: Page-Execution-Timer...PHP vs WebDNA ( "Sal" 2004)
  6. Re: Page-Execution-Timer...PHP vs WebDNA ( Gary Krockover 2004)
  7. Re: Page-Execution-Timer...PHP vs WebDNA ( "Dan Strong" 2004)
  8. Re: Page-Execution-Timer...PHP vs WebDNA ( "Andrew Simpson" 2004)
  9. Re: Page-Execution-Timer...PHP vs WebDNA ( Paul Uttermohlen 2004)
  10. Re: Page-Execution-Timer...PHP vs WebDNA ( "Dan Strong" 2004)
  11. Re: Page-Execution-Timer...PHP vs WebDNA ( Gary Krockover 2004)
  12. Page-Execution-Timer...PHP vs WebDNA ( "Sal" 2004)
>What is it about PHP that makes people want to use it??? $$$ On Fri, 16 Jan 2004 22:16:52 -0800 "Sal" wrote: >>From page: > >http://keithdevens.com/weblog/archive/2003/Dec/03/page-execution-timer > >function timer($finish = false){ > static $start_frac_sec, $start_sec, $end_frac_sec, $end_sec; > if($finish){ > list($end_frac_sec,$end_sec) = explode(" ", microtime()); > echo '

This page took about ' . > round( > ( > ($end_sec - $start_sec) > + ($end_frac_sec - $start_frac_sec) > ), > 4) . ' seconds to generate.

\n'; > }else{ > list($start_frac_sec,$start_sec) = explode(" ", microtime()); > } >} >?> > > >wtf was all that wasted code? in webdna: >at bottom of page: >this page took [format .4f][math][elapsedtime]/60[/math][/format] seconds to >generate. >What is it about PHP that makes people want to use it??? >by Amazing BrianB on 5-Dec-2003 8:42pm est > >Good question Brian, too bad no one responded. ;-) > >Sal D'Anna > > >------------------------------------------------------------- >This message is sent to you because you are subscribed to > the mailing list . >To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------ http://www.StrongGraphicDesign.com http://www.SearchBoise.com ------------------------------------------------------------ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ "Dan Strong"

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

[WebDNA] 3-5 GB of native WebDNA db in RAM?, else MySQL w/WebDNA [SQL] tags, else skip WebDNA altogether? (2009) WebCat & Liststar (1997) WebDNA 4.5 upgrade? (2002) [WebDNA] mail error (2017) ImageMagick and [shell] (2003) Configuring E-mail (1997) WC Database Format (1997) Weird problems with [SHOWIF]s (1997) Cart Transfer from Un-Secure to Secure (2000) insecuretextvars preference doesn't work (2000) international time (1997) send mail problem? (1997) Ready,Set; Print! (1999) [protect admin] (1997) won't serve .tpl (2000) Newbie question (1998) [WebDNA] Two stores one db (2011) Mystery authentication (1997) XML WebDNA Problems (2000) A quickie question (1997)