You can use the Timer class in Support, it works something like this:
Support::Timer timer;
timer.start();
SendMostMoney* m = new SendMostMoney(opt);
if (SendMostMoney* s = bab(m)) {
s->print(); delete s; //Or whatever
}
cout << t.stop() / 1000.0 << " seconds";
Cheers,
Guido
On 4 Dec 2013, at 4:36 pm, lana light <[email protected]> wrote:
> Thank you very much that really saved me
>
> sorry to bother you but i have another question :
>
> i want to have in the console the runtime so i did this :
>
> Options opt("MMKP");
> opt.parse(argc,argv);
> //Script::run<SendMostMoney,BAB,Options>(opt);/// i think if i use
> this i can have the runtime but like this it //////////wouldn't work
> SendMostMoney* m = new SendMostMoney(opt);
> if (SendMostMoney* s = bab(m)) {
> s->print(); delete s; //Or whatever
> }
>
> So how can i use the bab function and get the runtime (Summary) in the some
> time ???
>
>
> Thank you for your help
> _______________________________________________
> Gecode users mailing list
> [email protected]
> https://www.gecode.org/mailman/listinfo/gecode-users
_______________________________________________
Gecode users mailing list
[email protected]
https://www.gecode.org/mailman/listinfo/gecode-users