AD

php run-time computation

function getmicrotime () {
list ($ usec, $ sec) = explode ("", microtime ());
return ((float) $ usec + (float) $ sec);
}

Php file in the start value obtained at the beginning, the end of the last received value, subtracting the two have had run-time
<? Php
function getmicrotime () {
list ($ usec, $ sec) = explode ("", microtime ());
return ((float) $ usec + (float) $ sec);
}
$ Begin = getmicrotime ();

... ...
.
.
.
.
... ...
$ End = getmicrotime ();

echo 'running time :'.($ end-$ begin);

?>
标签: lt, run time, running time, php function, usec
分类: PHP
时间: 2011-04-02

相关文章

  1. Maven 2.0: Compile. Test. Deployment. Run

    <url> http://maven.apache.org </ url> <dependencies> <dependency> <groupId> juni ...
  2. A server simultaneously run multiple different versions of Rails application [to Taiwan thegiive article]

    http://lightyror.thegiive.net/2007/04/rails-version.html, following its original content. Rails site now using ...
  3. The development of the use of VS2008 to run at. Net 2.0 environment ASP.NET AJAX website

    Some time ago want to be a blog system, using vs2008 very smoothly, all ready at the above development. JS fra ...
  4. Select All check box implementation JS / switch will not run the whole

    Select All check box implementation JS / switch will not run the whole from: http://shaobo.javaeye.com/ <in ...
  5. configured to run redmine Memorandum

    Installation InstantRails First of all, from the InstantRailsWiki: Instant Rails Download the latest version o ...
  6. mvn jetty: run error

    Executive mvn jetty: run to test the new webapp will be built the following error: [INFO] Scanning for project ...
  7. How to run jar files?

    I was able to run a jar file, but I extract the jar file and the associated software, double-click on the unde ...
  8. Flex air pack and run files

    1 to install Adobe AIR runtime and java similar to the JVM. Adobe AIR runtime allows AIR to run desktop applic ...
  9. Hibernate Tools to run Ant Task Configuration

    Hibernate Tools to Ant Task run, mainly in the Build.xml configured. Reads as follows: <?xml version=" ...
  10. java RMI example (can run)

    0 Recommended RMI, Remote Method Invocation (Remote Method Invocation) is the Enterprise The pillars of JavaBe ...
  11. Run & compile & Backup

    Must be configured to run Ant Java_home ant_home variables, and set the variable value of Ant Directory Config ...
  12. SSH the first step: to make their programs to run together

    N finally, after a long time to start my SSH studied, only share with you! Individuals feel in learning to wri ...
  13. How to run J2ME programs on the Blackberry

    Blackberry is running J2ME programs! Here I am referring to the next Blackberry to compile J2ME program flow: ...
  14. Call the US defense department can be run on the Android platform, a military program

    U.S. Department of Defense Advanced Research Projects Agency (DARPA) has announced the start of the external a ...
  15. java-started through a multi-threaded parallel recursive computation of

    1, when each iteration independent of each other, and the completion of each loop iteration the work of major ...
  16. Cassandra 2 simple terms the first example of a run

    / ** * Author: ahuaxuan (Rong-Hua Zhang) * Date 2010-2-25 * / Cassandra 2 simple terms the first example of a ...
  17. Compile and run Java-class circle, first, the chicken or the egg!

    If there are two methods, each call, then when out? This problem was found in 1,2 years ago, too, and can be u ...
  18. Tomcat 7 run Servlet 3

    The first to point out: Tomcat 7 is still on the trunk, and no official release. But would like to try, if not ...
  19. To solve a single machine run multiple Tomcat Service

    Reprinted from: http://www.cnblogs.com/itolssy/archive/2008/08/27/1278041.html If you do not add any changes o ...
  20. java dynamic compilation and run (reproduced)

    Compiled by JavaCompiler are generated in the current directory. Class files using compiler option to change t ...