time takes from sending some email

the mail() function

Moderators: macek, egami, gesf

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

Re: time takes from sending some email

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

Return to “PHP coding => Mail”

Who is online

Users browsing this forum: No registered users and 1 guest

cron