[gecode-users] BAB Search Stats

Assia benziane benziane.assia at hotmail.com
Fri Feb 16 22:25:13 CET 2018


Hello,


I'm using a BAB search. I'm using this function to dispaly the stats:

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

void printStatsGecode(const Gecode::Search::Statistics& stat) {
std::cout << "Search Statistics" << std::endl;
std::cout << "  Propagations: " << stat.propagate << std::endl;
std::cout << "  Nodes:        " << stat.node << std::endl;
std::cout << "  Failures:     " << stat.fail << std::endl;
std::cout << "  Depth:        " << stat.depth << std::endl;
//std::cout << "  Time:        " <<  stat.time() << std::endl;
std::cout << std::endl;
cout << endl;
}
-----------------------------------------------------------------------------------------------


My problem is that i can not display the running time. There is an issue with the methode time().


Could anyone help me to display the running time??


Cheers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gecode.org/pipermail/users/attachments/20180216/4c2ed265/attachment.html>


More information about the users mailing list