engine.php code minor refactoring
TimeMeasurement class