[Lazarus] timer in a console application
michael.vancanneyt at wisa.be
michael.vancanneyt at wisa.be
Fri Aug 10 13:01:04 CEST 2012
On Fri, 10 Aug 2012, Andrea Mauri wrote:
> Dear all,
> I have a console application that performs calculations iteratively on
> different objects.
> I would like to set a time limit for the calculation on a single object.
> i.e. calculation starts on object 1, in order to start calculation on object
> 2 the calculations on object 1 must be finished or the time limit for the
> calculation on a single object is reached. if the calculation time limit is
> reached I would like to stop calculation on object 1 and pass to object 2 and
> so on for all the objects.
The fptimer unit has a timer that can be run in the main thread of an
application, in a console application.
If your main thread controls the time limits then this can be used to
control another thread(s) which do(es) the calculations.
Michael.
More information about the Lazarus
mailing list