[Lazarus] Most efficient way for polling (TTimer, OnIdle, TIdleTimer, TThread)
Luiz Americo Pereira Camara
luizamericop at gmail.com
Fri Oct 14 00:18:17 CEST 2016
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>
More information about the Lazarus
mailing list