note 65914 deleted from function.getrusage by bjori

From: Date: Wed, 10 May 2006 07:22:52 +0000
Subject: note 65914 deleted from function.getrusage by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-111022@lists.php.net to get a copy of this message
Note Submitter: kenman ---- Why is it that whenever I use this, the returned value is always nn997-nn999? Although the user time is very close to the time reported with microtime(), microtime() gives fluctuating results past the first 2 digits, whereas getrusage() does not. Does anyone have an explanation for this? p.s. To adjust the time to the actual decimal time, multiply the values by 1e-6, like so: 1e-6*($dat['ru_utime.tv_sec']*1e6 + $dat['ru_utime.tv_usec']);

« previous php.notes (#111022) next »