| 545 | } |
| 546 | |
| 547 | void EngineWorker::waitAndAllowAccess(std::chrono::microseconds const& duration) |
| 548 | { |
| 549 | auto startTimepoint = std::chrono::steady_clock::now(); |
| 550 | while (std::chrono::duration_cast<std::chrono::microseconds>(std::chrono::steady_clock::now() - startTimepoint) < duration) { |
| 551 | if (_accessState == 1) { |
| 552 | _accessState = 2; |
| 553 | } |
| 554 | } |
| 555 | } |
| 556 | |
| 557 | void EngineWorker::measureTPS() |
| 558 | { |
nothing calls this directly
no outgoing calls
no test coverage detected