[Paradiseo-help] problem with eoTimeCounter

Ali Nayeem nayeem007 at gmail.com
Lun 9 Fév 10:45:03 CET 2015


I create the functor each time, eoTimeCounter is declared inside the
functor, so each eoTimeCounter  is created anew. What can I do? Please
advice me.

On Mon, Feb 9, 2015 at 3:41 PM, Ali Nayeem <nayeem007 at gmail.com> wrote:

> I always create a new eoTimeCounter object each time. Still its not
> working.
>
> On Mon, Feb 9, 2015 at 3:33 PM, Alexandre QUEMY <alexandre.quemy at gmail.com
> > wrote:
>
>> Hi,
>>
>> The internal time counter used by eoTimeCounter starts at the creation of
>> the object eoTimeCounter. There is no way to reset it and thus, you should:
>> 1) Create a new eoTimeCounter at the restart
>> 2) Extend the class eoTimeCounter with this functionnality (either by
>> adding the method and rewritting eoTimeCounter or creating a new class by
>> inheritance)
>>
>> If you chose the second option, please, let us know, this could added to
>> the code base.
>>
>> Regards,
>> Alexandre
>>
>> 2015-02-07 16:22 GMT+01:00 Ali Nayeem <nayeem007 at gmail.com>:
>>
>>>
>>>
>>> Hello
>>> I need to run a functor for several times. Each time the program is run
>>> for 20 seconds. I declared eoTimeCounter  inside the functor to count
>>> 20 sec.The program runs for 20 sec for the first time correctly. But then
>>> at the next run it should count time from 0 but it counts from 20. Here is
>>> my code
>>>
>>> https://github.com/ali-nayeem/orchestration_netbeans/blob/master/hill_climbing.h
>>> At line 28 I declared the eoTimeCounter
>>>
>>> Plz tell me how to fix this?
>>>
>>>
>>>
>>> --
>>> Muhammad Ali Nayeem
>>> Student of Knowledge
>>>
>>>
>>> ---------------------------------------------------------------------------------------
>>>
>>> *Many people are ready to adopt TRUTH, so long their lifestyles remain
>>> untouched and unaltered* - are we among them? Has *lifestyle* become an
>>> unnoticed *god *for us?? Let's think about it carefully! Let's think of
>>> what our Lord means by saying: "Have you seen the one who takes as his god
>>> his own *desire*?..."  (*The Criterion 25:43*)
>>>
>>> _______________________________________________
>>> Paradiseo-help mailing list
>>> Paradiseo-help at lists.gforge.inria.fr
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/paradiseo-help
>>>
>>
>>
>
>
> --
> Muhammad Ali Nayeem
> Student of Knowledge
>
>
> ---------------------------------------------------------------------------------------
>
> *Many people are ready to adopt TRUTH, so long their lifestyles remain
> untouched and unaltered* - are we among them? Has *lifestyle* become an
> unnoticed *god *for us?? Let's think about it carefully! Let's think of
> what our Lord means by saying: "Have you seen the one who takes as his god
> his own *desire*?..."  (*The Criterion 25:43*)
>



-- 
Muhammad Ali Nayeem
Student of Knowledge

---------------------------------------------------------------------------------------

*Many people are ready to adopt TRUTH, so long their lifestyles remain
untouched and unaltered* - are we among them? Has *lifestyle* become an
unnoticed *god *for us?? Let's think about it carefully! Let's think of
what our Lord means by saying: "Have you seen the one who takes as his god
his own *desire*?..."  (*The Criterion 25:43*)
-------------- section suivante --------------
Une pièce jointe HTML a été nettoyée...
URL: <http://lists.gforge.inria.fr/pipermail/paradiseo-help/attachments/20150209/612f134b/attachment.html>


Plus d'informations sur la liste de diffusion Paradiseo-help