| 85 | } |
| 86 | |
| 87 | void Sample1Module::TestCronScheduler() |
| 88 | { |
| 89 | static AFScheduler scheduler; |
| 90 | AFDateTime* now = ARK_NEW AFDateTime(); |
| 91 | |
| 92 | scheduler.cron("* * * * *", [now]() { |
| 93 | AFDateTime cur; |
| 94 | AFDateTime::TimeDiff diff = (cur - *now); |
| 95 | |
| 96 | std::cout << diff << std::endl; |
| 97 | *now = cur; |
| 98 | }); |
| 99 | } |
| 100 | |
| 101 | void Sample1Module::TimerTest(uint64_t timer_id, const AFGUID& entity_id) |
| 102 | { |
nothing calls this directly
no test coverage detected