int main(){ apop_prep(NULL, &search_sim); one_run(10, 10); one_run(100, 10); one_run(10, 45); apop_model *fuzzed = fuzz(search_sim); apop_data_print(fuzzed->data, .output_name="outdata"); }
double run() { double sum = 0; for (int i = 0; i < num_of_runs; ++i) { sum += one_run(); std::this_thread::sleep_for(std::chrono::microseconds(10000)); } std::cout << "name: " << typeid(*this).name() << "\tthreads: " << threads_count << "\ttime: " << sum / num_of_runs << std::endl; return sum / num_of_runs; }