Added World Generation timings

This commit is contained in:
Shoghi Cervantes
2014-12-15 17:52:07 +01:00
parent b6981cc31d
commit c175485cd8
2 changed files with 5 additions and 0 deletions

View File

@@ -2182,6 +2182,7 @@ class Server{
}
}
Timings::$generationTimer->startTiming();
try{
$this->generationManager->process();
}catch(\Exception $e){
@@ -2189,6 +2190,7 @@ class Server{
$this->logger->logException($e);
}
}
Timings::$generationTimer->stopTiming();
if(($this->tickCounter % 100) === 0){
foreach($this->levels as $level){