| 77 | |
| 78 | class ActionGNode : public GNode { |
| 79 | CStatus run() override { |
| 80 | int ms = std::abs((int)std::random_device{}()) % 4000 + 1000; |
| 81 | CGRAPH_SLEEP_MILLISECOND(ms); // 一个算子,随机休息一段时间,时长 1000~5000 ms |
| 82 | return CStatus(); |
| 83 | } |
| 84 | }; |
| 85 | |
| 86 |
nothing calls this directly
no outgoing calls
no test coverage detected