-
-
//Start timing - $HeaderTime = microtime(true);//The parameter true means returning a floating point value
//Code
- //...
printf(" total run: %.2f s ".
- "memory usage: %.2f M
",
- microtime(true) -$HeaderTime,
- memory_get_usage() / 1024 / 1024 );
- ?>
-
Copy code
Output results:
total runtime: 1.47 s
memory usage: 77.09 M
|