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

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 55530
interpreted = N
texte = Good stuff Sal, how did you happen upon that? I assume "Amazing BrianB" is Brian Burton perhaps? The WebDNA "how-to" guide from his site has been down for some time, wish he'd make it available again, it was a great source of info, especially for some of the newer folks that have made an appearance here lately. GK At 12:16 AM 1/17/2004, you 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/ 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)
Good stuff Sal, how did you happen upon that? I assume "Amazing BrianB" is Brian Burton perhaps? The WebDNA "how-to" guide from his site has been down for some time, wish he'd make it available again, it was a great source of info, especially for some of the newer folks that have made an appearance here lately. GK At 12:16 AM 1/17/2004, you 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/ Gary Krockover

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:

Executing remote AppleScript (2000) Running 2 two WebCatalog.acgi's (1996) Cross-platform file locations? (2000) More DateMath problems (1997) AAAH: stupid sendmail (2001) SetHeader not Working (2006) Webcatalog [blank] Problem (1999) [cart] clarification... (1997) PCS Frames (1997) OS Limitations (1998) WebCat2b13MacPlugin - nested [xxx] contexts (1997) Price Hacking (1998) Searching for all records (1998) [writefile] (1997) nested ListWords? (2003) SetHeader not Working (2006) [Repost] Triggers, again SM??? (2000) Wrapping text (1998) WebCatalog Features (1997) Tax on Shipping question (1998)