| 89 | |
| 90 | private: |
| 91 | void* ThreadProc() noexcept override { |
| 92 | TInstant started = TInstant::Now(); |
| 93 | Func(); |
| 94 | Time = TInstant::Now() - started; |
| 95 | return nullptr; |
| 96 | } |
| 97 | }; |
| 98 | |
| 99 | inline TAutoPtr<TWorkerThread> StartThread(std::function<void()> func) { |