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.

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to