I would like to put the 1/1000 second when a button is clicked into a session variable - $_SESSION['Click'] or $_COOKIE['Click']
echo '<a href="index.php?level=done"><img src="./cat.jpg" width="'.$imgwidth.'" height="'.$imgwidth.'"></a>';
The site is called again and the new level is built.
The 1/1000 second when the level is built shall be stored in another session variable $_SESSION['Begin']
Then $_SESSION['TimeNotMeasured'] += $_SESSION['Begin'] - $_SESSION['Click'] or $_COOKIE['CLick']
What would be the solution to get and store the exact time of click?
I finished the Game and it works - but I need a much better solution to measure the time between the moment when the level is finished and the milliseconds or seconds until the next level is built and ready.