tests/animated-resizing: Split frame statistics out into a separate file

Split the code for computing frame rate and latency into a separate file
so we can use it from multiple tests.
This commit is contained in:
Owen W. Taylor
2013-04-21 18:31:36 -04:00
parent 0032b2dc5a
commit b7063509f8
7 changed files with 218 additions and 130 deletions

View File

@ -291,8 +291,8 @@ print_statistics (void)
g_print ("playback rate adjustment: %g +/- %g %%\n",
(variable_mean (&time_factor_stats) - 1) * 100,
variable_standard_deviation (&time_factor_stats) * 100);
variable_reset (&latency_error);
variable_reset (&time_factor_stats);
variable_init (&latency_error);
variable_init (&time_factor_stats);
dropped_frames = 0;
n_frames = 0;
last_print_time = now;