time takes from sending some email

the mail() function

Moderators: macek, egami, gesf

Post Reply
User avatar
WiZARD
Moderator
Moderator
Posts: 1256
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol
Contact:

Re: time takes from sending some email

Post by WiZARD » Thu Jan 23, 2003 1:01 am

From manual to PHP:

Code: Select all

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";

Post Reply

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests