lime icon

Phosphorus and Lime

A Developer's Broadsheet

This blog has been deprecated. Please visit my new blog at klenwell.com/press.
PHP: micro timer
A simple little routine for timing scripts:

$tx1 = microtime();

$tx2 = microtime();

$tx_in_s = number_format(((substr($tx2,0,9)) + (substr($tx2,-10)) - (substr($tx1,0,9)) - (substr($tx1,-10))),4);


keywords: PHP, timer, microtime, script timer