| 516 | //========================================================================== |
| 517 | |
| 518 | static void TicStabilityWait() |
| 519 | { |
| 520 | using namespace std::chrono; |
| 521 | using namespace std::this_thread; |
| 522 | |
| 523 | if (!r_ticstability) |
| 524 | return; |
| 525 | |
| 526 | uint64_t start = duration_cast<microseconds>(steady_clock::now().time_since_epoch()).count(); |
| 527 | while (true) |
| 528 | { |
| 529 | uint64_t cur = duration_cast<microseconds>(steady_clock::now().time_since_epoch()).count(); |
| 530 | if (cur - start > stabilityticduration) |
| 531 | break; |
| 532 | } |
| 533 | } |
| 534 | |
| 535 | static void TicStabilityBegin() |
| 536 | { |