Skip to content

Commit

Permalink
more on plot timing
Browse files Browse the repository at this point in the history
  • Loading branch information
AllinCottrell committed Nov 27, 2024
1 parent 2db3dc9 commit 14a050b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion gui/gpt_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -5544,7 +5544,7 @@ static int render_png (png_plot *plot, viewcode view)
gtk_window_present(GTK_WINDOW(plot->shell));
#endif

fprintf(stderr, "plot_show_time %gs\n", gretl_stopwatch());
fprintf(stderr, "plot_shown: %gs\n", gretl_stopwatch()); /* HERE */

return 0;
}
Expand Down Expand Up @@ -6154,6 +6154,8 @@ void register_graph (void)
}
}

fprintf(stderr, "calling gretl_show_png: %gs\n", gretl_stopwatch()); /* HERE */

gnuplot_show_png(gretl_plotfile(), NULL, NULL, pp);
}

Expand Down
4 changes: 2 additions & 2 deletions gui/library.c
Original file line number Diff line number Diff line change
Expand Up @@ -7915,7 +7915,7 @@ int do_graph_from_selector (selector *sr)

if (buf == NULL) return 1;

gretl_stopwatch(); /* HERE */
gretl_stopwatch(); /* HERE start timer */

lib_command_sprintf("gnuplot %s", buf);

Expand Down Expand Up @@ -8111,7 +8111,7 @@ void plot_from_selection (int code)
}
}

gretl_stopwatch(); /* HERE */
gretl_stopwatch(); /* HERE start timer */

if (!cancel) {
int err;
Expand Down

0 comments on commit 14a050b

Please sign in to comment.