문제

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?

도움이 되었습니까?

해결책

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

다른 팁

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

So 7.2E-5 microseconds = 0.000072 microseconds

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top