summaryrefslogtreecommitdiff
path: root/tests/video-timer.c
diff options
context:
space:
mode:
authorOwen W. Taylor <otaylor@fishsoup.net>2013-04-21 18:31:36 -0400
committerOwen W. Taylor <otaylor@fishsoup.net>2013-04-23 14:04:40 -0400
commitb7063509f8cac919490d4f907ece5ec8d7e3f127 (patch)
tree2542a77334e18e120458e5474402663a665aa3a8 /tests/video-timer.c
parent0032b2dc5ad4c5faffb58565a3e4589335005c9e (diff)
downloadgtk+-b7063509f8cac919490d4f907ece5ec8d7e3f127.tar.gz
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.
Diffstat (limited to 'tests/video-timer.c')
-rw-r--r--tests/video-timer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/video-timer.c b/tests/video-timer.c
index f858240049..e665c6da7f 100644
--- a/tests/video-timer.c
+++ b/tests/video-timer.c
@@ -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;