views:

145

answers:

3

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?

+2  A: 

7.2E-5 = 7.2 x 10^-5 = 7.2 x 0.00001 = 0.000072

So 7.2E-5 microseconds = 0.000072 microseconds

Janek Bogucki
+3  A: 

Paste 7.2E-5 microseconds into http://www.wolframalpha.com and it will give you a bunch of conversions.

Alex K.
+2  A: 

Scientific Notation

webbiedave