#include <ctime>
std::clock_t start;
double duration;
start = std::clock();
function_name(var1, var2);
duration = ( std::clock() - start ) / (double) CLOCKS_PER_SEC;
std::cout << "duration milliseconds initialize beliefs " << 1000 * duration << '\n';