瀏覽代碼

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

Since we simulate, it is the only useful information.
Lionel ED 7 年之前
父節點
當前提交
4959ede8c5
共有 1 個文件被更改,包括 4 次插入0 次删除
  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);