Tính thời gian thực thi mã php

<?php
$start = (float) array_sum(explode(' ',microtime()));

// put you code that wanted to render at here

$end = (float) array_sum(explode(' ',microtime()));

echo "Processing time: ". sprintf("%.4f", ($end-$start))." seconds";
?>

Popularity: 4% [?]


  1. No comments yet.

  1. No trackbacks yet.

Chọn kiểu gõ: Tự động TELEX VNI Tắt

Bad Behavior has blocked 47 access attempts in the last 7 days.