On Aug 14, 2012 1:36 AM, "tamouse mailing lists" <tamouse.li...@gmail.com> wrote: > > > On Aug 13, 2012 8:01 AM, "Robert Cummings" <rob...@interjinn.com> wrote: > > > > On 12-08-10 04:42 PM, Tedd Sperling wrote: > >> > >> On Aug 10, 2012, at 1:21 PM, Ege Sertçetin <sertce...@itu.edu.tr> wrote: > >> > >>> Hi. My question will maybe out of topic, I'm sorry. > >>> How can you know that one way will be much slower than other one? I mean, how can I learn which function is faster before I test it? > >> > >> > >> Ege: > >> > >> No your question is on topic. > >> > >> This question should be asked on the list, so I'll present Q:A instead of answering privately > >> > >> http://www.webbytedd.com/b/timed1/ > >> > >> The code is there -- if you have questions, please post them to the list. > > > > > > Ted, > > > > Please see the current signature for microtime(): > > > > mixed microtime ([ bool $get_as_float = false ] ) > > > > The optional paramter was added in PHP 5.0.0. I think it's safe to update your habits :) > > > > Cheers, > > Rob. > > -- > > E-Mail Disclaimer: Information contained in this message and any > > attached documents is considered confidential and legally protected. > > This message is intended solely for the addressee(s). Disclosure, > > copying, and distribution are prohibited unless authorized. > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > What are the timing values if you do something besides session start with no close?
Just to clarify, since at least 4.3.x subsequent calls session_start raise an E_NOTICE and are ignored, so you're first call is generating almost all the time.