|
<?php
Header ("Content-type:text/html;charset=utf-8");
Program Run time
$starttime = Explode (', microtime ());
/*········ The following is the code area */
$link = mysql_connect ("localhost", "root", "root");
mysql_select_db ("test");
mysql_query ("Set names UTF8");
$sql = "Select add_time from T1 limit 100000";
$res = mysql_query ($sql, $link);
$num = mysql_num_rows ($res);
while ($row = Mysql_fetch_array ($res)) {
echo Date ("Y-m-d h:i", $row [' Add_time ']). "| ";
}
/*········ Above is code area */
Program Run time
$endtime = Explode (', microtime ());
$thistime = $endtime [0]+ $endtime [1]-($starttime [0]+ $starttime [1]);
$thistime = Round ($thistime, 3);
Echo
//--------------------------------------------------------
//--------------------------------------------------------
Program Run time
$starttime = Explode (', microtime ());
/*········ The following is the code area */
$sql = "Select add_time from T1 limit 100000";
$res = mysql_query ($sql, $link);
$num = mysql_num_rows ($res);
while ($row = Mysql_fetch_array ($res)) {
echo $row [' Add_time ']. | ";
}
/*········ Above is code area */
Program Run time
$endtime = Explode (', microtime ());
$thistime = $endtime [0]+ $endtime [1]-($starttime [0]+ $starttime [1]);
$thistime = Round ($thistime, 3);
Echo '
//--------------------------------------------------------
//--------------------------------------------------------
Program Run time
$starttime = Explode (', microtime ());
/*········ The following is the code area */
$sql = "Select From_unixtime (add_time, '%y-%m-%d%h:%m ') as add_time from T1 100000";
$res = mysql_query ($sql, $link);
$num = mysql_num_rows ($res);
while ($row = Mysql_fetch_array ($res)) {
echo $row [' Add_time ']. | ";
}
/*········ Above is code area */
Program Run time
$endtime = Explode (', microtime ());
$thistime = $endtime [0]+ $endtime [1]-($starttime [0]+ $starttime [1]);
$thistime = Round ($thistime, 3);
Echo
?>
|