Timings: rename core timers to remove 'timer' from the names

this makes them shorter and more consistent.
This commit is contained in:
Dylan K. Taylor
2020-12-23 17:52:25 +00:00
parent 1d7b65e0c2
commit bcc3e87730
14 changed files with 160 additions and 160 deletions

View File

@ -959,9 +959,9 @@ abstract class Entity{
$this->updateMovement();
Timings::$timerEntityBaseTick->startTiming();
Timings::$entityBaseTick->startTiming();
$hasUpdate = $this->entityBaseTick($tickDiff);
Timings::$timerEntityBaseTick->stopTiming();
Timings::$entityBaseTick->stopTiming();
$this->timings->stopTiming();
@ -1073,7 +1073,7 @@ abstract class Entity{
protected function move(float $dx, float $dy, float $dz) : void{
$this->blocksAround = null;
Timings::$entityMoveTimer->startTiming();
Timings::$entityMove->startTiming();
$movX = $dx;
$movY = $dy;
@ -1219,7 +1219,7 @@ abstract class Entity{
//TODO: vehicle collision events (first we need to spawn them!)
Timings::$entityMoveTimer->stopTiming();
Timings::$entityMove->stopTiming();
}
protected function checkGroundState(float $movX, float $movY, float $movZ, float $dx, float $dy, float $dz) : void{