this is my class
<?php
class Timer {
private $start;
public function __construct() {
$this->start = explode(' ', microtime())[0] + explode(' ', microtime())[1];
}
public function stop() {
return round((explode(' ', microtime())[0] + explode(' ', microtime())[1]) ) - $this->start;
}
public function reset() {
$this::__construct();
}
}
How to show the result in dashBoard.html
And thanks for the quick answer