//显示时间 function performance( $visible = false ) { $stat = sprintf( '%d queries in %.3f seconds, using %.2fMB memory', get_num_queries(), timer_stop( 0, 3 ), memory_get_peak_usage() / 1024 / 1024 ); echo $visible ? $stat : "<!-- {$stat} -->" ; } //显示时间
<div id=huangxiansen><?php if(function_exists('performance')) performance(ture) ;?></div>
/** 时间样式 **/ #huangxiansen{margin:0px auto; 10px no-repeat #fff;huangxiansen:1px solid #D7D8DF;padding:10px;width:378px;} /** 样式结束 **/
站点统计
留言咨询