• notice
  • Congratulations on the launch of the Sought Tech site

The microtime function in php in windows does not change after the microsecond value

    When using the microtime(true); function, I found the floating point number obtained by microtime(true) The last digit has not changed.Very strange, the millisecond value of each request is changing, and the microsecond value cannot be repeated.The program is very simple:

php $start = microtime(true); $test =< span class="pln"> array< s
'; exit;
    output the time 10,000 times continuously, and found that the microsecond value of the time value is the same every time: 82600; no matter if I am F5 Refresh the page or ctrl+f5 to refresh the page will not change, it is still the same after restarting apache.Can't explain.As shown in the figure below: 10,000 cycles are all like this.Before that, my 826 was always 30400, because I had been trying, but then somehow I felt that it changed again for a while, but then it changed again, now it is 82600 unchanged.

The microtime function in php in windows does not change after microseconds

    After that, I put the program on Alibaba Cloud and ran it to see the result: It is normal on the Alibaba Cloud server, as shown in the figure below:

The microtime function in php in windows does not change after the value of microsecondsTags

Technical otaku

Sought technology together

Related Topic

0 Comments

Leave a Reply

+