| 50 | |
| 51 | template<typename T> |
| 52 | int MicrosecondsFrom(const T& start) { |
| 53 | return std::chrono::duration_cast<std::chrono::microseconds>(std::chrono::steady_clock::now() |
| 54 | - start) |
| 55 | .count(); |
| 56 | } |
| 57 | |
| 58 | Maybe<void> ForEachThreadCtx(vm::VirtualMachineEngine* engine, |
| 59 | const std::function<Maybe<void>(vm::ThreadCtx*)>& DoEach) { |
no outgoing calls
no test coverage detected