This event is called every time according to the time set in the route's RefreshRate property.
Please note that if you write heavy processing within the OnHeartBeat event, it may cause an increase in the load on the CPU.
If you want to implement periodic processing, we recommend using the SetTimer method and the OnTimer event.
SetTimer has the advantage of being able to start multiple timers simultaneously and set their individual periods.
|