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
Luiz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20161013/29d5d5a1/attachment.html>
