Browse Source

replay.c: display (simulated) execution time at end of simulation

Since we simulate, it is the only useful information.
Lionel ED 7 years ago
parent
commit
4959ede8c5
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tools/starpu_replay.c

+ 4 - 0
tools/starpu_replay.c

@@ -473,6 +473,8 @@ int main(int argc, char **argv)
 	/* Read line by line, and on empty line submit the task with the accumulated information */
 	reset();
 
+	double start = starpu_timing_now(); 
+	
 	while(1)
 	{
 		char *ln;
@@ -818,6 +820,8 @@ eof:
 
 	starpu_task_wait_for_all();
 
+	printf("Simulation ended. Elapsed time: %g µs\n", starpu_timing_now() - start); 
+	
 	/* FREE allocated memory */
 
 	free(dependson);