Running response time tests on php code - how much is 7.2E-5 microseconds?
Posted
by Ali
on Stack Overflow
See other posts from Stack Overflow
or by Ali
Published on 2010-03-31T16:01:24Z
Indexed on
2010/03/31
16:03 UTC
Read the original article
Hit count: 660
Hi guys I'm using microtime() function of php to tell how long certain snippets of code take to run I do this by taking the time before and after the snippet and subtracting them using microtime function.
I got the following results though for the different snippets:
1 - 0.022976
2 - 0.003656
3 - -0.196361
4- 0.006563
5- 7.2E-5
6- 0.847695
7- 0.005092
8- 7.6E-5
9- 0.08024
The first numbers represent the snippt and the following the time taken... I've forgotten whatever I learnt back in College on numerical methods :( - how big is 7.2E-5 microseconds?
© Stack Overflow or respective owner