@@ -36,7 +36,7 @@ using namespace operations::engines;
36
36
37
37
int main (int argc, char *argv[]) {
38
38
try {
39
- std::chrono::steady_clock::time_point const tpStart (std::chrono::steady_clock::now ());
39
+ std::chrono::steady_clock::time_point const tpStartTotal (std::chrono::steady_clock::now ());
40
40
string parameter_file = WORKLOAD_PATH " /computation_parameters.json" ;
41
41
string configuration_file = WORKLOAD_PATH " /engine_configuration.json" ;
42
42
string callback_file = WORKLOAD_PATH " /callback_configuration.json" ;
@@ -67,7 +67,9 @@ int main(int argc, char *argv[]) {
67
67
auto *agent = g->GenerateAgent ();
68
68
agent->AssignEngine (engine);
69
69
agent->AssignArgs (argc, argv);
70
+ std::chrono::steady_clock::time_point const tpStartCompute (std::chrono::steady_clock::now ());
70
71
MigrationData *md = agent->Execute ();
72
+ std::chrono::steady_clock::time_point const tpEndCompute (std::chrono::steady_clock::now ());
71
73
72
74
std::cout << " Finished executing" << std::endl;
73
75
auto *writer = g->GenerateWriter ();
@@ -82,8 +84,9 @@ int main(int argc, char *argv[]) {
82
84
delete cp;
83
85
delete engine;
84
86
85
- std::chrono::steady_clock::time_point const tpEnd (std::chrono::steady_clock::now ());
86
- std::cout << " Total Execution Time: " << std::chrono::duration<double >( (tpEnd - tpStart) - (tpIOWriteEnd - tpIOWriteStart)).count () - dIOReadTime << " s" << std::endl;
87
+ std::chrono::steady_clock::time_point const tpEndTotal (std::chrono::steady_clock::now ());
88
+ std::cout << " Compute time: " << std::chrono::duration<double >(tpEndCompute - tpStartCompute).count () - dIOReadTime << " s" << std::endl;
89
+ std::cout << " Total Execution Time: " << std::chrono::duration<double >( (tpEndTotal - tpStartTotal) - (tpIOWriteEnd - tpIOWriteStart)).count () - dIOReadTime << " s" << std::endl;
87
90
} catch (std::exception const &e) {
88
91
std::cerr << " Exception caught: " << e.what () << std::endl;
89
92
exit (EXIT_FAILURE);
0 commit comments