Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Сергей Шевченко
Added: Dec 31, 2017 7:34 AM
Modified: Dec 31, 2017 7:34 AM
Views: 16
  1. //////////////////////////////////////////////////////////////////////
  2. $time = microtime();
  3. $memoryStart = memory_get_usage();
  4. $memoryStart = memory_get_usage();
  5.  
  6. // script start
  7.        
  8. // script end
  9.  
  10. $memory = round((memory_get_usage() - $memoryStart) / 1024, 2) . 'KB';
  11. $time = round(microtime() - $time, 6);
  12. unset($memoryStart);
  13. //////////////////////////////////////////////////////////////////////
  14.