Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Mail

time takes from sending some email

the mail() function

Moderators: macek, egami, gesf

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";
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol

Return to PHP coding => Mail

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.