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

@ -107,7 +107,7 @@ class ChunkCache implements ChunkListener{
++$this->misses;
$this->world->timings->syncChunkSendPrepareTimer->startTiming();
$this->world->timings->syncChunkSendPrepare->startTiming();
try{
$this->caches[$chunkHash] = new CompressBatchPromise();
@ -128,7 +128,7 @@ class ChunkCache implements ChunkListener{
return $this->caches[$chunkHash];
}finally{
$this->world->timings->syncChunkSendPrepareTimer->stopTiming();
$this->world->timings->syncChunkSendPrepare->stopTiming();
}
}

View File

@ -67,7 +67,7 @@ final class CraftingDataCache{
* Rebuilds the cached CraftingDataPacket.
*/
private function buildCraftingDataCache(CraftingManager $manager) : CraftingDataPacket{
Timings::$craftingDataCacheRebuildTimer->startTiming();
Timings::$craftingDataCacheRebuild->startTiming();
$pk = new CraftingDataPacket();
$pk->cleanRecipes = true;
@ -127,7 +127,7 @@ final class CraftingDataCache{
);
}
Timings::$craftingDataCacheRebuildTimer->stopTiming();
Timings::$craftingDataCacheRebuild->stopTiming();
return $pk;
}
}