增加计时

This commit is contained in:
YuhangQ 2023-04-28 13:20:10 +00:00
parent cd54a20086
commit cd43915949
2 changed files with 12 additions and 2 deletions

View File

@ -1,2 +1,8 @@
192.168.100.6 192.168.100.1 slots=9
192.168.100.9 192.168.100.4 slots=8
192.168.100.5 slots=8
192.168.100.6 slots=8
192.168.100.9 slots=8
192.168.100.10 slots=8
192.168.100.11 slots=8
192.168.100.12 slots=8

View File

@ -139,4 +139,8 @@ void leader_main(light* S, int num_procs, int rank) {
printf("s UNKNOWN\n"); printf("s UNKNOWN\n");
} }
auto clk_now = std::chrono::high_resolution_clock::now();
double solve_time = std::chrono::duration_cast<std::chrono::milliseconds>(clk_now - clk_st).count();
printf("c time: %.3f\n", solve_time / 1000);
} }