I have a component that needs to poll a SimpleIPC server repeatedly (at
each 1s or so).

Currently i'm using a TTimer with a OnTimer handler that calls
FIPCServer.PeekMessage(1, True);.

Wondering if using TIdleTimer, Application.OnIdle(or AddIdleHandler) or a
separated TThread will be more efficient.

By efficiency i mean low resource usage, notebook battery friendly

Lazarus mailing list

Reply via email to