time takes from sending some email

  • Thread starter Thread starter Anonymous
  • Start date Start date
A

Anonymous

Guest
From manual to PHP:
Code:
function getmicrotime(){ 
   list($usec, $sec) = explode(" ",microtime()); 
   return ((float)$usec + (float)$sec); 
   } 

$time_start = getmicrotime(); 
    
for ($i=0; $i < 1000; $i++){ 
   //do nothing, 1000 times 
   } 

$time_end = getmicrotime(); 
// mail procedure
mail(.......);
$time = $time_end - $time_start; 

echo "succesfully sending email in $time seconds";
 
Back
Top