I am beginner and tried to make quiz when the quiz over the I inserted $date=date(Y-m-d) in database. My question is how can I calculate time taken us this Please help to fix this
$date=date(Y-m-d);
I am beginner and tried to make quiz when the quiz over the I inserted $date=date(Y-m-d) in database. My question is how can I calculate time taken us this Please help to fix this
$date=date(Y-m-d);
To measure the script runtime, take a timestamp at the begin and at the end of the script, the subtract the first from the second:
$t0 = microtime(true);
// do the work...
$t1 = microtime(true);
$t = ($t1 - $t0);
echo 'Script took '.number_format($t, 2).' seconds';