PHP Beginners Course by Thenmayer Klaus

PHP Beginners Course by Thenmayer Klaus

Author:Thenmayer, Klaus
Language: eng
Format: epub
Publisher: UNKNOWN
Published: 2016-12-26T16:00:00+00:00


<?php

$start = microtime(true);

/*

Two dummy variables, so that we can generate some computing time for the script:

*/

$dummyVariable1 = 1;

$dummyVariable2 = 3;

$x = 0;

while ($x < 1000000) {

$x++;

$dummyVariable1 *= $dummyVariable2;

$dummyVariable1 = $dummyVariable1 / $dummyVariable2;

}

$end = microtime(true);

echo "Runtime: " . ($end - $start) . "ms";

?>

This has, for example, the output:

Runtime: 0.0886830329895ms

Give a point in time to DATE() function with mktime()



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.