]> git.cworth.org Git - fips/commitdiff
Print frame-time and latency time on separate lines.
authorCarl Worth <cworth@cworth.org>
Sat, 9 Nov 2013 16:22:56 +0000 (08:22 -0800)
committerCarl Worth <cworth@cworth.org>
Mon, 11 Nov 2013 18:31:42 +0000 (10:31 -0800)
This will simplify parsing slightly for the graphing program.

metrics.c

index 996e7795e74cfe1929623bd9bf75762a6665269a..2fe2dc7c9ba875b08eb239c432799f21997f190f 100644 (file)
--- a/metrics.c
+++ b/metrics.c
@@ -825,8 +825,12 @@ metrics_end_frame_pre_swap (metrics_t *metrics)
                /* We've waited one frame to ensure we have a timestamp
                 * result. So the time we've actually measured here is
                 * for the previous frame. */
-               printf ("Frame %d: %.2f ms (latency: %.2f ms)\n",
-                       frames - 1, frame_time_ns / 1e6, latency_ns / 1e6);
+               printf ("frame-time: %d %" PRId64 "\n",
+                       frames - 1, frame_time_ns);
+
+               printf ("frame-latency: %d %" PRId64 "\n",
+                       frames - 1, latency_ns);
+
        }
 
        metrics->previous_swap_end_timestamp = swap_end_timestamp;