Re: [PHP] Microtime math and display

2001-03-08 Thread Shaun Thomas
On Wed, 7 Mar 2001, Todd Cary wrote: > I want to check the time for queries. I have > > $starttime = getmicrotime(); > $endtime = getmicrotime(); > $delta = $endtime - $starttime; There is no such function as "getmicrotime". You're probably trying to use "microtime". Second of all, microtime

Re: [PHP] Microtime math and display

2001-03-07 Thread Chris Lee
start = mtime(); } function reset() { $all_vars = get_object_vars($this); foreach($all_vars as $pos => $val) if ($pos != 'error') unset($this->$pos); } function time($text = '') { $this->break = mtime(); $time = ($this->break - $this->start) / 10; echo

[PHP] Microtime math and display

2001-03-07 Thread Todd Cary
I want to check the time for queries. I have $starttime = getmicrotime(); $endtime = getmicrotime(); $delta = $endtime - $starttime; How do I display the seconds/milliseconds? Many thanks.. Todd -- Todd Cary Ariste Software [EMAIL PROTECTED] -- PHP General Mailing List (http://ww