Commit fb7ab82b authored by Robert Ricci's avatar Robert Ricci

Move the start of measured time to before pclasses are calculated, so

that we include this and the prechecks into the reported time.

(Though, we still exclude file parsing time)
parent 66d8c61a
......@@ -784,6 +784,11 @@ int main(int argc,char **argv)
read_physical_topology(argv[0]);
calculate_switch_MST();
read_virtual_topology(argv[1]);
// Time while we make pclasses and do the type prechecks
timestart = used_time();
cout << "Generating physical equivalence classes:";
generate_pclasses(PG,disable_pclasses,dynamic_pclasses);
......@@ -793,8 +798,6 @@ int main(int argc,char **argv)
pclass_debug();
#endif
read_virtual_topology(argv[1]);
// Run the type precheck
if (!type_precheck()) {
exit(EXIT_UNRETRYABLE);
......@@ -844,7 +847,7 @@ int main(int argc,char **argv)
initial_temperature_pointer = NULL;
}
timestart = used_time();
// Note, time is started earlier now, up by where we make pclasses
anneal(scoring_selftest, scale_neighborhood, initial_temperature_pointer,
use_connected_pnode_find);
timeend = used_time();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment